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?
Why not use http://unwrongest.com/projects/lazy/ ?
In my various projects I use LABjs . Easy and flexible :)
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.
Just turn it on
<script src="your_lazy.js"></script>
in the script (html) which is loaded by your ajax page
Source: https://habr.com/ru/post/889812/More articles:MySQL to MySQL clone with PHP - phpParallel Sum for Vectors - c ++Can I depend on the behavior of charCodeAt () and fromCharCode () to stay the same? - javascriptOne user for each database and one user for all databases - mysqlHow can I fill patch objects using a color map instead of a solid color? - matlabHow to run a function only when loading a div? - javascriptcomplex SQL query, many of many - sqlRails Devise Adds Role Based on Registration Path - ruby-on-railsI'm afraid arc4random betrayed me - objective-cCombobox and autocomplete in C # - c #All Articles