Skip to content

Latest commit

 

History

History

sifrr-lazy-img

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

sifrr-lazy-img

Usage

After loading sifrr-lazy-img JS file as instructed in main readme. Put this in your html file:

<img is="sifrr-lazy-img" data-src="source/to/use.jpg"> <!-- Use data-src instead of src -->

When picture is 200px below viewport, they will be loaded.