开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜