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
| Size | 7.3 KB minified, 2.8 KB gzipped (dist/lazyload.min.js) |
|---|---|
| Licence | MIT |
| Dependencies | none |
| Last release | v19.1.3, April 2024 |
| Last activity | 2026-10-20 (Active) |
| Stars | 7,848 on GitHub |
| Formats | ES module; classic script (global LazyLoad); TypeScript types in the package |
| CDN hits | 942.8 million a month on jsDelivr |
| npm downloads | 207,210 a month |
| Gates | G1 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.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/lazyload.min.js"
integrity="sha384-tjw38MqWJXRnobhELGysCmDRLCg9PbqwJZjfo/7em9JoYnefzgnoZlqfUo7q0tIm" crossorigin="anonymous"></script>import LazyLoad from "https://cdn.jsdelivr.net/npm/[email protected]/dist/esm/lazyload.js";Advertisement
Related libraries
- Notus – Web Notifications Widget Yet another JavaScript pop-up notification library for the web.
- Speckle.js A JavaScript plugin that adds responsive, stylized speckles to any element; with no dependencies.
- Roar A zero-dependency, vanilla JavaScript alert/confirm replacement.
Entry 95 in the directory. Facts refreshed monthly; last run 2026-10-30.