Thanks to visit codestin.com
Credit goes to github.com

Skip to content

depthdev/lazyload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lazyload

Image, Iframe & Script Lazy-loader

  • 1.08 KB minified
  • No dependencies
  • Preloading
  • Custom attribute/source reference
  • Strict mode supported

Demo

Use:

new Lazyload({
  attr: 'data-src', // Required. Full attribute name. This doubles as the selector AND source for the src attribute.
  preload: 500 // Required. The distance in pixels from the bottom of the viewport to start loading the next elements src.
});

About

Image, Iframe & Script Lazy-loader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors