3 ms·
The question might be naive, but can you tell me the advantage of using this?
by alagappanr 14y ago
The question might be naive, but can you tell me the advantage of using this?
- pizza 14y agoBasically, it lets you run a function once a javascript file has been loaded.
- jonny_eh 14y agoNormally, you would load javascript files by inserting a <script src="whatever.js"> tag into your HTML document's <HEAD> or <BODY>. The big disadvantage to that is it's synchronous. That means no rendering or executing of javascript can occur while that js file is being run. This library would allow you to run it asynchronously, so that other js code can continue to run.