I'd like to "bootstrap" my page only after all async files have been loaded. Is there a way I can be notified when an async file has been loaded?
index.html
<script src="fileone.js" type="text/javascript" async></script>
<script src="filetwo.js" type="text/javascript" async></script>
<script src="bootstrap.js" type="text/javascript" async></script>
Giving one of your scripts an ID...
<script src='fileone.js' type='text/javascript' async id='script_1'></script>
<script>
document.getElementById("script1").onload = script.onreadystatechange = function(){ alert("Script loaded!"); }
</script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With