Cumulative Layout Shift (CLS) - What It Is & How to Improve It On Your Website

REPLI Team • January 7, 2022

Cumulative Layout Shift (CLS)

Have you ever been just about to click a link on a website, when everything on the page shifts and you click on an ad instead? This is called a layout shift, or when an element on your page changes its position or size, thus affecting the content around it. Let’s figure out how these shifts impact the user experience, and how we can improve them!



The Rundown

Cumulative Layout Shift (CLS) is a metric to quantify how many times webpage users experience layout shifts as a page loads or is interacted with. Google doesn’t like unexpected layout shifts either, so they created this as one of three Core Web Vitals introduced by Google Search to improve user experiences. Layout shifts happen for a variety of reasons; the content on your page may be loading asynchronously, or a third-party widget may be resizing itself as the page loads. As you may already be understanding, the lower your CLS score, the better the user experience is. 


You should aim to have CLS scores of 0.1 or less. Anything above 0.25 is considered poor, and you should strongly consider optimizing these web pages that underperform.


For mobile users, layout shifts on a smaller screen create bigger movements. Thus, there are separate CLS scores for both mobile and desktop views to ensure both are working at a high performance level. 


How Do We Measure CLS?

The formula for a layout shift score is:


Layout Shift Score = Impact Fraction x Distance Fraction 


Instead of calculating these elements yourself, simply diagnose your site using Google’s Core Web Vitals report in
Google Search Console. You will be able to see what mobile and desktop URLs are poor, needs improvement, or good.


How Can We Improve It?


Now that you understand the basis behind CLS, let’s explore the number of factors that may drastically affect your score.


Dimensionless Images


Dimensionless images have no specific width or height, so the browser does not hold any space for these images on the page. After the images load, they may affect the format of the page and cause those bad layout shifts that move contents from their original positions. The simple fix to this issue? Always use images with a specified width and height! 


Fonts


Websites most often use custom fonts rather than default browser fonts. In doing this, significant layout shifts can occur throughout the page as the custom font loads. Try preloading your fonts so that font assets will have a higher priority in page rendering. Among other tactics, you can also make sure to host fonts from your own domain to avoid the delay from third-party domains. Unfortunately, custom fonts are essential for branding and design, so this specific layout shift may not be able to be completely eliminated. 


Embedded Content


Embedding content on your page allows you to import and display content from other sites, like Instagram Posts, Youtube videos, and more. However, like dimensionless images and ads, a lot of these widgets do not include accurate dimensions in advance. Try using the same method we outlined when reserving space for ads, but in reverse. Load your embed content on your web page and inspect it to get the final height and width. Then, make sure you allocate space for these dimensions to minimize or eliminate any layout shifts. 


What Does This All Mean for SEO?


Cumulative Layout Shift
does impact SEO, as Google wants users to visit the sites that have good user experience. If your web page doesn’t have a good CLS score, it may influence keyword rankings and lower the performance of your overall SEO. In fact, higher CLS scores are correlated with higher bounce rates and shorter session lengths, limiting the potential for users to return to your site in the future. 


CLS accounts for 5% of the weighted metrics in Google Lighthouse scoring. While it is not nearly as important as other factors that impact optimization, you still want to create pages that promote positive, stable, and smooth user experience. Make sure to keep this key metric in mind as you develop and reconfigure your website for best SEO performance!

Repli Apartment Marketing Blog

Subscribe to our Newsletter & Blogs

Blog Post Subscribe Form

We're committed to your privacy. Repli uses the information you provide to us to contact you about our relevant content, products, and services. You may unsubscribe from these communications at any time. For more information, check out our privacy policy.

Share Our Post!

Apartment Marketing Blog

A poster that says think suburban keywords are cheap think again
By Siobhan Park February 20, 2025
Apartment marketers, take note! Suburban keywords are no longer the budget-friendly alternative. CPCs in areas like Cedar Park and Avery Ranch are skyrocketing past downtown Austin. Learn why this shift is happening and how to adjust your strategy before it’s too late.
Student Housing Social Media | Apartment Marketing | Repli Blog
By Christina Li January 14, 2025
Explore the best strategies for posting on Instagram, Facebook, Tik Tok, and YouTube to reach student renters.
The Apartment Community's Guide to Social Media Success: 5 Tips for Crafting Effective Posts
By Siobhan Park December 13, 2024
Discover five powerful social media strategies tailored for multifamily communities in 2025. Learn how to create renter-focused content, leverage user-generated posts, and boost engagement to make your apartment community stand out. Download our free Social Media Audit ebook to refine your strategy!
Show More
Share by: