Cumulative Layout Shift (CLS)
Cumulative Layout Shift (CLS) is a Core Web Vital that measures how much visible content unexpectedly moves around while a page loads. Good is 0.1 or less.
Everyone has tried to tap a link just as an ad loads and pushes it down the page. CLS puts a number on that frustration by combining how much of the screen moves and how far.
In more detail
Common causes are images and embeds without width and height, ads and banners injected above content, web fonts that swap in with different sizes, and content added by JavaScript after load. Fixes include always setting dimensions or aspect ratios on media, reserving space for ads and embeds, using font fallbacks with matching metrics, and adding new content below the visible area or in response to user actions.
Why it matters
Layout shifts cause misclicks, lost reading position and a feeling that a site is low quality. Fixing them is usually straightforward and has a clear impact on user experience.
A blog's CLS is 0.32 because a newsletter banner loads at the top after two seconds. Reserving its space in the layout from the start drops CLS to 0.02.