/LazyLoadPureJS

Lazy Load implementation with Pure JS

Primary LanguageJavaScriptMIT LicenseMIT

LazyLoadPureJS

Lazy Load implementation with Pure JavaScript

How to use?

You can use this library for img, iframe and source elements.

  1. add lazyload classname to elements
  2. change src as data-src

Example

img Example

<img class="lazyload" data-src="example.png" ... />

iframe Example

<iframe class="lazyload" data-src="https://example.com/" ... ></iframe>