kb/data/developer.mozilla.org/en-US/docs/Glossary/CLS-0.md

10 KiB

title chunk source category tags date_saved instance
Cumulative Layout Shift (CLS) - Glossary | MDN 1/3 https://developer.mozilla.org/en-US/docs/Glossary/CLS reference web, html, css, javascript, documentation 2026-05-05T05:26:00.883955+00:00 kb-cron

MDN HTML HTML: Markup language

HTML reference

HTML guides

Markup languages

CSS CSS: Styling language

CSS reference

CSS guides

Layout cookbook

JavaScriptJS JavaScript: Scripting language

JS reference

JS guides

Web APIs Web APIs: Programming interfaces

Web API reference

Web API guides

All All web technology

Technologies

Topics

Learn Learn web development

Frontend developer course

Learn HTML

Learn CSS

Learn JavaScript

Tools Discover our tools

About Get to know MDN better

Blog

  1. Glossary
  2. Cumulative Layout Shift (CLS)

Cumulative Layout Shift (CLS)

Cumulative Layout Shift (CLS) is a usability metric for websites, designed by Google as one of the Core Web Vital metrics. It measures the extent to which users encounter unexpected layout shifts, in which elements of the page are moved in an unexpected way: that is, that are not the result of a user action like pressing a button or part of an animation. Layout shifts may be caused, for example, by <img> or <video> elements that are not given width and height attributes, so the browser doesn't know how much space they will occupy until they are loaded. The LayoutShift interface, part of the Performance API, can be used to measure individual layout shifts, which can then be used to calculate the CLS score for a web page.

In this article

See also

  • CLS on web.dev