Cumulative Layout Shift (CLS)
Cumulative Layout Shift (CLS) measures how much visible page elements move around unexpectedly during rendering. High CLS causes accidental clicks and user frustration.
Smooth, rock-solid reading experience without surprise shifts.
Elements jump around as late-loading resources hydrate.
Violates Core Web Vitals; leads to accidental clicks and ranking penalties.
Top 4 Ways to Eliminate Layout Shifts
Include explicit width and height attributes (or CSS aspect-ratio) on images and iframes so the browser reserves space before downloading.
Dynamic display ads and cookie banners cause massive shifts when inserted above existing content. Wrap ad slots in containers with min-height.
Use font-display: optional or match fallback font metric overrides (size-adjust) so text doesn’t reflow when custom fonts load.
Never animate box properties like top, left, or height. Use GPU-accelerated transform: translate(...) to guarantee zero CLS.