Load ordering of dynamically added script tags
I can mention some alternatives to overcome that requirement: Use a library to inject dependencies (AMD or CommonJS modules) Just use modules. ES2015: import/export, or CommonJS: require(). Create the script tag programmatically and set the callback onload in order to react when the script has been loaded asynchronously. The attribute async = true is set … Read more