Skip to content

fazberry/lazy-load

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Light-weight Lazy Image Loading on Scroll

Add lazy.js to the footer of your site just below jquery.

Lazy load <img> or background-images on page scroll.

In your HTML image tag just add data-image e.g:

<img src="lowres.jpg" data-image="mainimage.jpg" />

and using inline background-image style just add data-background:

<div style="background-image: url('lowres.jpg');" data-background="mainimage.jpg"></div>

About

Lazy loading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published