项目作者: JhonatanHern

项目描述 :
Lazy image loading
高级语言: JavaScript
项目地址: git://github.com/JhonatanHern/lazyload.git
创建时间: 2018-08-17T13:54:56Z
项目社区:https://github.com/JhonatanHern/lazyload

开源协议:

下载


Lazyload.js

  1. <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:

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


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