What does CLS measure?
Cumulative Layout Shift measures unexpected movement of visible page content using a scoring method based on movement and affected viewport area. It captures visual instability rather than loading speed alone. A page can load quickly and still be frustrating if a banner, font or image moves a control just as someone tries to use it.
Why is content moving?
This may be caused by images without reserved dimensions, advertisements, late messages and different font metrics. Expanding after a conscious user action is a different situation than unexpected movement while reading. It is necessary to indicate the element causing the displacement, and not only the element that changed position as a result of someone else's change.
Example in cart
After responding from the marketing tool, a promotion bar appears above the form. The payment button changes place and the customer goes to a different control. Reserving appropriate space or presenting the message differently can improve stability. Random hard height is not a universal fix as it may truncate text in translation or leave an empty area.
How to design stably?
Specify image proportions, space for embedded resources, and font loading strategy. Check validation, recommendations and messages added over time. The layout should assume the true length of the content on different screens. Test for slow resources, delayed consent and connection errors as the problem may not occur with a fast local cache.
Apparent fixes
Hiding the entire page until the download is complete limits visible movement at the expense of later access. Equal heights of all cards may truncate information. A short initial measurement does not describe the full visit: further scrolling and messages may result in further changes. Don't remove necessary warnings just because it's easier to get a low score.
How to perform an inspection?
In performance tools, look for offset events and traverse the viable path. A good CLS is up to 0.1 at the 75th percentile. Compare field data and document laboratory conditions separately. Check the readability and possibility of correcting a form error. The repair should reduce accidental movement while maintaining all necessary information and actions.
Example of shifting while reading
The recipient starts a paragraph, then a late-loaded banner appears above it and pushes down the text. An image without reserved space or changing the font to a much wider one works similarly. Determine media dimensions and predictable placement for dynamic modules. However, do not arbitrarily reserve huge empty space on each screen: the size should correspond to the actual presentation and responsiveness principles.
Also examine the rest of the visit, not just the first second of loading. Expanding after a conscious action has a different context than adding an element unexpectedly. The diagnostic tool helps pinpoint affected areas, but the cause may be higher up in the system. Check for a product with a long description, blank result, and form error so that the fix doesn't only work for one perfect data sample.