Portal: Official address, jQuery Lazy Load v1.7.2 Download, Github
How to use:
1. Reference JS file
<src= "Jquery.js"></script>< src= "Jquery.lazyload.js"></script>
2. Modify the IMG tags in the HTML code that need to be modified
<!-- The real picture address is written in the Data-original attribute, and the picture in the SRC attribute is replaced with a placeholder image (such as a 1x1 pixel gray picture or a loading GIF image) to add class= "lazy" to distinguish which images need to be loaded in time, and of course you Can be replaced by other keywords, modified at the same time remember to modify the JQuery selector when the call to add the width and Height properties to help when the picture is not loaded to fill the required space- < class = "lazy" src = "Grey.gif" data-original = "Example.jpg" width = "640" Heigh = "480" >
3. Call the Lazy Load
$ (' Img.lazy '). Lazyload ();
JQuery lazy Load picture lazy loading