CiteStat/Wiki/Cumulative Layout Shift (CLS)

Cumulative Layout Shift (CLS)

Performance & Speed

TL;DR

CLS measures how much page content unexpectedly jumps around during loading. A score under 0.1 is good — nobody likes clicking a button that suddenly moves.

Explain Simply

Imagine reading a book and every few seconds the paragraphs rearrange themselves. That's CLS — when images, ads, and text shift around on screen while the page loads.

CLS measures total unexpected layout shift throughout a page's lifetime. Layout shift occurs when elements change position without user interaction. Good threshold: ≤0.1, needs improvement: 0.1-0.25, poor: >0.25.

Common causes: images without explicit width/height attributes, dynamically injected ads or banners, web fonts causing FOIT/FOUT (flash of invisible/unstyled text), dynamically loaded content above existing content, and iframes without reserved space.

Fixes: always set width and height on images and videos (or use CSS aspect-ratio), reserve space for ad slots, use font-display: swap with size-adjust, load dynamic content below the viewport or with placeholder space, and use contain-intrinsic-size for lazy-loaded content.

⚡Why It Matters

Layout shifts frustrate users — especially when reading or clicking. Images without dimensions, injected ads, and late-loading fonts are common causes. In a case study on web.dev, Yahoo! JAPAN News improved CLS by 0.2 and saw 15.1% more page views per session.

🔍How CiteStat Checks

CiteStat measures CLS via PageSpeed and CrUX, identifies elements causing the largest layout shifts, and suggests adding width/height to images and reserving ad space.

CiteStat Score Impact

Headline score: the 3 rules that link here count in the Performance group (15% of the headline, about 1.5 of its 15 points). In the Performance card (out of 20) a poor CLS costs 2 and a "needs improvement" CLS costs 1.

Fix Difficulty

Editor: N/A | Developer: Easy | AI Agent: Easy