plainJS

Libraries / UI

LazyLoad

LazyLoad is a lightweight, flexible script that speeds up your website by deferring the loading of your below-the-fold images, backgrounds, videos, iframes and scripts to when they will enter the viewport. Written in plain "vanilla" JavaScript, it leverages IntersectionObserver, supports responsive

No-build verifiedActive0 dependenciesESM + script tagTypes bundledMIT

Facts

Facts fetched 2026-10-30 by the directory sync (GitHub, npm, jsDelivr, deps.dev). Nothing here is typed by hand.
Size7.3 KB minified, 2.8 KB gzipped (dist/lazyload.min.js)
LicenceMIT
Dependenciesnone
Last releasev19.1.3, April 2024
Last activity2026-10-20 (Active)
Stars7,848 on GitHub
FormatsES module; classic script (global LazyLoad); TypeScript types in the package
CDN hits942.8 million a month on jsDelivr
npm downloads207,210 a month
GatesG1 passed (no runtime dependencies); G2 passed (loads in a browser as it is); G3 passed (no compile-only entry points); G4 passed (open-source licence); G5 passed (not archived or deprecated). Smoke test on v19.1.3 in headless Chromium, 2026-10-30

Load it

Pin the version. The hash is computed from the file jsDelivr serves, so a changed file fails to load instead of running.

htmlscript tag, with SRI
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/lazyload.min.js"
        integrity="sha384-tjw38MqWJXRnobhELGysCmDRLCg9PbqwJZjfo/7em9JoYnefzgnoZlqfUo7q0tIm" crossorigin="anonymous"></script>
jsES module import
import LazyLoad from "https://cdn.jsdelivr.net/npm/[email protected]/dist/esm/lazyload.js";
Advertisement

Entry 95 in the directory. Facts refreshed monthly; last run 2026-10-30.