How To Load External Javascript Files After Page Has Loaded
- Forums
- Javascipt
- How To Load External Javascript Files After Page Has Loaded
this page will show you how you can load external javascript files in the order you want them to load like first second third and so on this is call Asynchronous loading [850], Last Updated: Sat May 18, 2024
wallpaperama
Sun May 27, 2012
0 Comments
140 Visits
hi, if you are wondering how you can load some external javascript files only after the page has loaded but yo want them to load in the order you want them to load i hope i can help you. i wanted to do the same thing but after googling it, i finally found the answer.
this is called Asynchronous JavaScript Loading. there are some script you can find online, they are called 'Asynchronous JavaScript Loader' or JavaScript Dependency Management you can google it,
the first searches might find
1. RequireJS RequireJS For Asynchronous Script Loading
site: http://www.andresvidal.com/jsl
2. Kongregate Asynchronous JavaScript Loader
site: https://gist.github.com/405172
3. yepnope - is an asynchronous conditional resource loader that's super-fast
site:http://www.yepnopejs.com/
4. Head JS
site: http://www.headjs.com/
5. LAB.js
site: http://www.labjs.com/
reource: http://www.bennadel.com/blog/2230-Using-The-LAB-js-Script-Loader-With-jQuery-s-DOM-Ready-Event.htm
you should try all of them to see which one you like the best. i personally recommend RequireJS