lazySizes
High performance and SEO friendly lazy loader for images (responsive and normal), iframes and more, that detects any visibility changes triggered through user interaction, CSS or JavaScript without configuration.
No-build verifiedStable0 dependenciesScript tagTypes bundledMIT
Facts
| Size | 7.7 KB minified, 3.4 KB gzipped (lazysizes.js) |
|---|---|
| Licence | MIT |
| Dependencies | none |
| Last release | v5.3.2, March 2021 |
| Last activity | 2024-04-03 (Stable) |
| Stars | 17,712 on GitHub |
| Formats | classic script (global lazySizes); TypeScript types in the package |
| CDN hits | 100.6 million a month on jsDelivr |
| npm downloads | 828,710 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 v5.3.2 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]/lazysizes.js"
integrity="sha384-VGO3fNubjkDnHoL+VxwENWvJ+IdaoW+DTAw4BWca49uAh5e+5O6n2i4lsw/iSQw/" crossorigin="anonymous"></script>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 96 in the directory. Facts refreshed monthly; last run 2026-10-30.