I am working with two files named one.js
and two.js
. The file two.js
needs to be executed after one.js
, but both files can be fetched in parallel from the server.
To handle this, I stored the response of two.js
in a variable, then used eval to run two.js
after one.js
was resolved. Are there any alternative methods for achieving this?