SilverGecko
ToolsBlogPricingDocs
  1. Home
  2. /Glossary
  3. /CLS (Cumulative Layout Shift)
Performanceintermediate

CLS (Cumulative Layout Shift)

Core Web Vital measuring visual stability as content loads.

What is CLS (Cumulative Layout Shift)?

Cumulative Layout Shift (CLS) measures how much page content unexpectedly shifts during loading. It quantifies the visual stability of a page. A low CLS means elements don't jump around as the page loads.

CLS is calculated by multiplying the impact fraction (percentage of viewport affected) by the distance fraction (how far elements moved). A good CLS score is under 0.1.

Why CLS (Cumulative Layout Shift) matters

Layout shifts frustrate users and can cause misclicks. Buttons moving as you try to click them, or content jumping as images load, creates a poor experience. CLS is a Core Web Vital and ranking factor.

How to implement

1

Set explicit width/height on images and videos

2

Reserve space for ads and embeds

3

Avoid inserting content above existing content

4

Use transform animations instead of layout-triggering ones

5

Preload web fonts

6

Use CSS aspect-ratio for responsive media

Code example

<!-- Set explicit dimensions -->
<img src="hero.jpg" width="800" height="600" alt="Hero">

<!-- Use CSS aspect-ratio -->
<div style="aspect-ratio: 16/9;">
  <iframe src="..."></iframe>
</div>

<!-- Reserve space for ads -->
<div style="min-height: 250px;">
  <!-- Ad will load here -->
</div>

Common mistakes to avoid

  • Not setting image dimensions
  • Injecting content dynamically above existing content
  • Late-loading ads pushing content down
  • Font swaps causing text reflow

Examples

Good: Set width='800' height='600' on all images

Bad: Ad loads 2 seconds late, pushing content down

Good: Reserve space for dynamic content

Frequently asked questions

Images without dimensions, dynamically injected content, web fonts causing text reflow, ads loading late, and animations that trigger layout changes.

Under 0.1 is good, 0.1-0.25 needs improvement, over 0.25 is poor. Aim for as close to 0 as possible.

Related terms

Core Web VitalsLCP (Largest Contentful Paint)INP (Interaction to Next Paint)Page speed

SilverGecko tools for CLS (Cumulative Layout Shift)

Core Web Vitals

Analyze page performance with Google's Core Web Vitals. LCP, INP, CLS metrics with optimization recommendations.

SilverGecko

Free SEO tools optimized for Google rankings and AI search visibility.

Free tools

  • SEO auditor
  • SERP preview
  • Schema generator
  • Meta generator
  • E-E-A-T analyzer
  • Fluff detector
  • Heading analyzer
  • OG debugger
  • Robots.txt
  • Core Web Vitals
  • Content freshness
  • Citation sources
  • LLM visibility

AI tools

  • Compete (market view)
  • pSEO strategy
  • All tools

Resources

  • Blog
  • Documentation
  • SEO glossary
  • Compare
  • Guides
  • Industries
  • Pricing
  • Contact

Gecko family

  • GoldenGecko

Legal

  • Privacy
  • Terms

© 2026 SilverGecko. All rights reserved.

[email protected]