Does anyone know a good ajax script downloader

Does anyone know the ajax script loader that allows lazy loading of js and css files, and also consists of a list of dependencies that can be defined in an external script?

+6
source share
4 answers

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

+1
source

If you need reasonably why upload or skip resources, see http://yepnopejs.com/ :

yepnope is an asynchronous conditional resource loader that is super-fast and allows you to load only the scripts that your users need.

Modrnizr is a good example of using yepnoejs.

+1
source

Just turn it on

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

in the script (html) which is loaded by your ajax page

+1
source

Source: https://habr.com/ru/post/889812/


All Articles