does anyone knows good ajax script loader

Does anyone knows ajax script loader that allows lazy loading of js and css files and also consist of dependency list that can be defined in external script?

Answers:

Answer

In my various projects I use LABjs. Easy and flexible :)

Answer

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.

Answer

Just include

<script src="your_lazy.js"></script>

in script (html) which is loaded with your ajax-called page

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us Javascript

©2020 All rights reserved.