Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

lazyload-new

1.0.0 • Public • Published

Lazyload

a lazyload plugin based on IntersectionObserver interface.

how to use ?

var lazy = new Lazyload({
    src:'data-src',// where is the real source 
    selector:'img[data-src]'
})
 
//sync after append new document
lazy.update();
 

Install

npm i lazyload-new

DownloadsWeekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

83.6 kB

Total Files

8

Last publish

Collaborators

  • avatar