Lazy loading
Deferring image downloads until they're actually needed, cutting initial page weight and improving load times.
Definition
Lazy loading means an image is only fetched when it approaches the viewport. In modern browsers it needs no JavaScript: add loading="lazy" to the <img> tag. The browser estimates each image's position and loads off-screen images just before they scroll into view.
In practice
Lazy-load everything below the fold — never the hero image, which is usually the LCP element and should load eagerly with fetchpriority="high". Without lazy loading, a long page with 40 images downloads all of them immediately; with it, a visitor who reads two paragraphs never downloads most of them.
Related guides
Compress your images now — free and private
Drop your files and ImageAlchemy compresses them in your browser. No uploads, no accounts, no limits. Batch process hundreds at once and download a ZIP.