Cumulative Layout Shift
noun
say it: “KYOO-myuh-luh-tiv LAY-owt SHIFT” /ˈkjuːmjələtɪv ˈleɪaʊt ʃɪft/ or “SEE-EL-ESS” /ˌsiːˌɛlˈɛs/
A score for how much a web page jumps around while it loads, as late pictures and ads push the text out of the way. Lower is better.
What is Cumulative Layout Shift (CLS)?
Cumulative Layout Shift (CLS) — A score for how much a page jumps around while it loads. Each time something
arrives late and pushes the content below it out of the way (very often a picture with no width and height),
that's a layout shift; CLS adds them all up. Google's page-speed tools, such as Lighthouse, measure it, and a score of
0.1 or less counts as good. Giving every img its width and height is the usual fix.
<img src="latte.jpg" alt="An iced oat latte" width="800" height="600">
In a sentence
- “Lighthouse gave the bakery's home page a poor Cumulative Layout Shift score, because the photo of the cakes had no width or height.”
Level: Journeyman · More HTML terms at this level
Updated