# callmecavs/layzr.js

A modern lazy loading library for images.

Repository: https://github.com/callmecavs/layzr.js
Canonical: https://ross.abutalabs.com/products/layzrjs
Homepage: http://callmecavs.com/layzr.js/
Language: JavaScript
License Family: other
Topics: lazy, load, image
Last push: 2017-10-29T22:06:44+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4165, "days_push": 3230, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5498, forks 232 (observed 2026-08-28T04:09:21.527045+00:00)

## What it is
Layzr.js is a small JavaScript library for lazy loading images on web pages. It defers image loading until elements scroll into view and selects the best source via srcset support or devicePixelRatio-based retina fallbacks.

## Use cases
- lazy load images as the user scrolls
- defer offscreen image loading to speed up page load
- serve retina images only on high-dpi screens
- use srcset with a fallback for older browsers
- reduce initial bandwidth on image-heavy pages

## When to choose
- you need a tiny, dependency-free vanilla JS lazy loader
- you must support browsers without native srcset via retina fallbacks
- you want configurable data attributes and scroll events

## When to avoid
- your target browsers support native loading='lazy'
- you need an actively maintained library with recent fixes
- you use a framework with built-in lazy loading (e.g., next/image)

## Facets
- artifact type: library
- maturity: abandoned
- function: image-processing, ui-components
- domain: web-development, frontend, performance
- platform: browser
- tags: lazy-loading, images, srcset, retina, scroll, vanilla-js, nodejs

## Member repositories
- callmecavs/layzr.js (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:21.527045+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:56:18.727206+00:00, confidence not recorded.
  - readme: https://github.com/callmecavs/layzr.js (fetched 2026-08-28T04:09:21.527045+00:00, sha 9291b3472e62)
  - registry_npm: https://registry.npmjs.org/layzr.js (fetched 2026-08-29T08:51:37.533340+00:00, sha b09a9e33094a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
