开发者

does anyone knows good ajax script loader

开发者 https://www.devze.com 2023-03-10 06:28 出处:网络
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://

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

精彩评论

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