Image, Iframe & Script Lazy-loader
- 1.08 KB minified
- No dependencies
- Preloading
- Custom attribute/source reference
- Strict mode supported
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.
});