A fast, lightweight script to load images as they enter the viewport. SEO friendly, it supports responsive images (both srcset + sizes and picture) and progressive JPEG
Tags: lazyload, vanilla, responsive, images, picture, srcset, SEO, intersectionObserver, sizes, progressive, performance, perfmatters, async, no-jquery
Want to write your own awesome tutorials?
Make and submit them today
No tutorials found, want to write one?
Help support cdnjs
You can contribute on
GitHub to help make cdnjs sustainable!
Or, donate $5 to cdnjs via
Open Collective or Patreon.