How to set the loading and execution order of two external asyncjavascript files ?
async
Given the following ...
<script src="framework.js" async></script> // Larger file <script src="scripts.js" async></script> // Small file
Although the second order is scripts.jsloaded and executed before framework.jsdue to its file size, it scripts.jsdepends on framework.js.
scripts.js
framework.js
Is there a way to specify the loading and execution order while maintaining the properties async?
defer, . defer, async script, , html .
defer
<script src="framework.js" defer></script> <script src="scripts.js" defer></script>
, .
IE9 ( defer), script:
https://github.com/mudroljub/js-async-loader