Skip to content

yunlzhang/lazyload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lazyload

a lazyload plugin based on IntersectionObserver interface.

how to use ?

npm i lazyload-new
import Lazyload from 'lazyload-new'
let lazy = new Lazyload({
    src:'data-src',// where is the real source 
    selector:'img[data-src]'
})

//sync after append new document
lazy.update();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published