1 HTML Lazy Loading Examples
This collection focuses on the power of the native loading="lazy" attribute for images and iframes, now supported by all modern browsers. It demonstrates how to implement the attribute correctly to boost Core Web Vitals (specifically LCP) without a single line of JavaScript. The guide also explains how to prevent Cumulative Layout Shift (CLS) by properly combining lazy loading with width and height attributes or CSS aspect ratios. These are zero-dependency solutions for instantly faster initial page loads.
Last updated:
Pure HTML/CSS Image Slideshow
A lightweight, fast gallery that operates without JS libraries, supporting keyboard navigation, mobile swipes, and deep linking to specific slides.