Skip to content

lazy load images for mobile first. plus: you can add any image to be lazy loaded dynamically!

License

Notifications You must be signed in to change notification settings

zechau/ImgLazyload.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

ImgLazylod

lazy loading images include bg-image for mobile first. plus: you can add any image to be lazy loaded dynamically!

Installation

<script src="/path/to/ImgLazyload.js"></script>

Usage

//init
var oLazyload = new LazyLoad({
	"threshold" :100,
	"throttle_delay": 200
});
//after a template created
oLazyload.run(document.querySelector('#imageContiner1Id'))

//afet another template created
oLazyload.run(document.querySelector('#imageContiner2Id'))

License

MIT

About

lazy load images for mobile first. plus: you can add any image to be lazy loaded dynamically!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published