Cumulative Layout Shift (CLS)


The CLS method is used to measure the degree to which the content on the webpage shifts or moves throughout the entire lifecycle of the page rendering cycle, or, in other words, to measure how stable the website’s visual appearance is.

There are probably many times in your life when you’ve witnessed first-hand just how frustrating it is to be able to click on an item in a menu and accidentally click on an advertisement, which then takes you to a third-party website, and how frustrating it is when content on the webpage shifts in the middle of an interaction. Of course, the layout shifts are also an annoyance to users. However, they are also capable of causing more significant problems for web publishers, including high bounce rates and violations of their ad policies due to accidental clicks due to layout shifts.

Additionally, since Google considers CLS one of the three “Core Web Vitals,” a low CLS score can negatively affect the overall core web vitals score, resulting in the user receiving a failing grade. As part of recent changes to Google’s search algorithm, sites that receive a passing score on the core web vitals assessment are ranked more favorably in the search results.

There is a direct correlation between improving the CLS score, improving the overall user experience, potentially improving Google rankings, and increasing Google organic traffic.

How is Cumulative Layout Shift measured?

When an element visible in the viewport shifts its start position for any reason, that shift will be recorded. Therefore, it would be considered unstable if it changed its start position. It’s important to note that it’s only possible to create a layout shift if a visible element moves to a different place on the page due to something happening on that page, and not if a new element or an existing element grows or shrinks.

A CLS score consists of two specific measures designed to track layout shifts: impact fractions and distance fractions. These two measures are used to determine the CLS score. The impact fraction measures how unstable elements affect the viewport between two frames by combining the original element and the shift as a ratio that can be compared to the viewport’s total visible area between the two frames. In the case of an unstable element that moves horizontally or vertically, the distance fraction represents the distance that element has moved about the viewport (either horizontally or vertically).

How can you improve your CLS score?

For reducing unstable elements/shifting behavior, here are a few recommendations:

Speed Up WordPress Performance with our site optimization services!

Related Posts

Site Speed Glossary
Komal Bothra

What Is Page Weight?

Page weight is the total file size of a web page. This includes all

Site Speed Glossary
Komal Bothra

What Is Real-Browser Monitoring?

To understand real-browser monitoring, it is essential to understand what a browser is. A

Site Speed Glossary
Komal Bothra

What Is Server Response Time?

When users visit a website, their browser sends a request to the website’s server.

Komal Bothra February 7, 2023

Why FAQs Are Essential For Your WooCommerce Store?

An FAQ, or Frequently Asked Questions, the page is a common addition to websites. It

Komal Bothra February 7, 2023

Why PageRank Is The Most Important Factor For SEO?

You've probably heard of SEO before, but what are the main factors in getting a

Komal Bothra February 6, 2023

What Is Conversion Rate?

Conversion rate is the percentage of visitors to a website who take action to convert

SEO Glossary

Get started with Seahawk

Sign up in our app to view our pricing and get discounts.