does anyone knows good ajax script loader
Does anyone knows ajax script loader that allows lazy loading of js and css files and al开发者_StackOverflow社区so consist of dependency list that can be defined in external script?
Why not use http://unwrongest.com/projects/lazy/ ?
In my various projects I use LABjs. Easy and flexible :)
If you need a smart why to load or skip resources, see http://yepnopejs.com/ :
yepnope is an asynchronous conditional resource loader that's super-fast, and allows you to load only the scripts that your users need.
Modrnizr is a good example of yepnoejs usage.
Just include
<script src="your_lazy.js"></script>
in script (html) which is loaded with your ajax-called page
精彩评论