What is Cumulative Layout Shift?
Also known as: CLS
Cumulative Layout Shift (CLS) is a Core Web Vital metric that measures the sum of all unexpected layout shift scores during a page's lifespan, quantifying visual stability.
Cumulative Layout Shift (CLS) is a user-centric performance metric defined by Google as part of the Core Web Vitals initiative. It quantifies how much visible content on a page shifts unexpectedly during the loading phase and throughout the entire session. A layout shift occurs when a visible element changes its starting position between two rendered frames, typically because resources like images, ads, or fonts load asynchronously after surrounding content has already been painted. The browser computes a shift score for each unexpected movement by multiplying the impact fraction (the proportion of the viewport affected) by the distance fraction (the maximum distance any element traveled relative to the viewport). CLS is the sum of these individual shift scores across all frames until the page is closed or navigated away from.
To be considered a good user experience, Google recommends a CLS score of 0.1 or less. Scores between 0.1 and 0.25 need improvement, and anything above 0.25 is poor. Unlike other performance metrics that focus on speed (such as Largest Contentful Paint), CLS directly addresses usability: sudden shifts can cause users to click the wrong button, lose their reading position, or accidentally trigger actions. Common causes include images or embeds without explicit dimensions, dynamically injected content like third-party ads or banners, web fonts that swap after rendering, and late-loading iframes or custom elements.
Developers mitigate CLS by always setting width and height attributes on images and video elements, reserving space for ads and embeds using CSS aspect-ratio boxes or min-height, and using font-display: optional or swap with careful fallback metrics. The browser's Layout Instability API (part of the PerformanceObserver interface) provides programmatic access to individual shift entries, enabling real-user monitoring. CLS is reported via the Chrome User Experience Report (CrUX) and is a ranking factor in Google Search. It sits alongside Largest Contentful Paint (loading) and First Input Delay (interactivity) as one of the three Core Web Vitals.
Key facts
- CLS is measured by the Layout Instability API, available in Chromium-based browsers since version 77.
- A good CLS score is 0.1 or lower; poor is above 0.25.
- The score for each shift is impact fraction multiplied by distance fraction.
- Common causes: images without dimensions, late-loading ads, web font swaps.
- CLS is a Google Search ranking signal as part of the page experience update in June 2021.
How it works in practice
Related terms
References
More in CDN & Performance
Apdex Score
The Apdex Score is a standardised metric that measures user satisfaction with application performance by comparing response times against predefined target and tolerable thresholds.
Bandwidth Throttling
Bandwidth throttling is the intentional reduction of data transfer speed by a network operator or service provider to manage congestion, enforce usage policies, or control costs.
Brotli Compression
Brotli is a lossless compression algorithm developed by Google, offering higher text compression ratios than gzip, used by CDNs to reduce page load times.
Cache Hit
A cache hit occurs when a requested resource is found in a CDN edge cache and served directly to the client, bypassing the origin server entirely.
Cache Invalidation
Cache invalidation is the explicit removal of stored web objects from a cache so that new requests must revalidate or refetch them from the origin server.
Cache Miss
A cache miss occurs when a requested resource is not found in a CDN or proxy cache, forcing the request to be forwarded to the origin server and then storing the response for future requests.
CDN
A CDN (Content Delivery Network) is a geographically distributed network of proxy servers and data centers that deliver web content to users from the nearest edge location, reducing latency and offloading origin servers.
Core Web Vitals
Core Web Vitals are a set of three real-world user experience metrics (LCP, INP, CLS) defined by Google to quantify loading, interactivity, and visual stability on web pages.
Edge Computing
Edge computing is a distributed computing model that processes data and runs application logic at Points of Presence (PoPs) close to end users, minimizing round-trip latency and bandwidth usage compared to centralized cloud regions.
Image Optimization
Image optimization reduces image file size by selecting modern formats (WebP, AVIF), resizing to display dimensions, and tuning quality, improving page load speed and bandwidth usage.