/Image-Lazy-Load-inline

Primary LanguageJavaScriptMIT LicenseMIT

Image-Lazy-Load-inline

Lazy load images on scroll event

Usage

  • Insert script inline at the end of the body tag.
  • Add data-original to each image element you want to be lazy loaded
  • Lazy loader is activated on browser's scroll event
<img src="load-boilerplate" data-original="path/to/src/img">