Lazy loading
Lazy loading delays downloading images, videos and iframes until the visitor scrolls near them, so the first view of a page loads faster.
Browsers support it natively with `loading="lazy"` on images and iframes. The one rule: don't lazy-load what is visible at the top of the page, especially the main hero image, since that delays the LCP.
How Regular approaches it
In Standard, images below the fold are lazy-loaded and the hero image gets high fetch priority. Videos only play while visible, and embeds like booking calendars load when they are needed.
Sources and further reading
- Lazy loading, MDN Web Docsdeveloper.mozilla.org
- Browser-level image lazy loading, web.devweb.dev
Related terms
Responsive imagesResponsive images let the browser choose the right size and format of an image for each screen, using the srcset and sizes attributes or the picture element.Core Web VitalsCore Web Vitals are Google's three metrics for real-world page experience: loading (LCP), responsiveness (INP) and visual stability (CLS).Page weightPage weight is the total size of everything a browser downloads to show a page: HTML, CSS, JavaScript, fonts, images and video.