Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/depthdev/lazyload

Image, Iframe & Script Lazy-loader
https://github.com/depthdev/lazyload

Last synced: 5 days ago
JSON representation

Image, Iframe & Script Lazy-loader

Awesome Lists containing this project

README

        

# 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.
});