Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 372 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 372 Bytes

Lazyload.js

<img data-src="example.jpg" class="lazy-load">

lazyload.js checks if the image is inside the viewport while scrolling. When in enters into the viewport it turns the image into:

<img src="example.jpg" class="lazy-load">

In order to integrate it into your images, add the class "lazy-load" to the img tag.