For example: ApiCall1 has below response: { url: 'somescript.js' }
I need to add this url dynamically in script tag like <script src='somescript.js' async />
This script should execute and return some data.
This data needs to be immediately sent in the payload of subsequent API call say ApiCall2.
While all this is happening, a loading indicator should be displayed.
calling first shows the loader but after calling the second API doesn't show the loader you can do that in a background process.