Cumulative Layout Shift
A Core Web Vital scoring how much visible content unexpectedly jumps around while a page is in use.
In more detail
CLS stands for Cumulative Layout Shift; good is 0.1 or less. Reserve space for images and embeds with width and height or aspect-ratio, avoid inserting content above existing content, and choose a font-display strategy that avoids reflowing text.
Related terms
- Core Web Vitals — Google's three key user-experience metrics for web pages: Largest Contentful Paint for loading, Interaction to Next Paint for responsiveness and Cumulative Layout Shift for visual stability.
- aspect ratio — The proportion of an element's width to its height, such as 16:9.
- font-display — The @font-face setting that controls what text shows while a web font loads: invisible, a fallback font, or the fallback permanently if the font is late.
Taught in
- The Fetch API: Streaming Responses, HTTP Caching And Keepalive — Frontend Architecture & Web Platform
- Core Web Vitals: Measuring And Optimizing LCP, INP, And CLS — Frontend Architecture & Web Platform