CLS Debugger

Check and visualize the Cumulative Layout Shift of any website

Test the Cumulative Layout Shift of a URL

Country

Select a country from where to test the Cumulative Layout Shift. See FAQ on how to use this feature.

Cookie Interstitials Experimental!

The following fields can be used to click cookie interstitials away. See FAQ on how to use this feature.

About the Cumulative Layout Shift Debugger

The purpose of the Cumulative Layout Shift Debugger is to visualize the cumulative layout shifts of any webpage so it becomes easier to identify what needs improving on mobile and/or desktop in the initial load of a website.

The Cumulative Layout Shift Debugger uses the Layout Instability API in Chromium to detect and measure the layout shifts in the viewport between when a webpage starts loading and when it finishes loading and calculates its cumulative layout shift score. The squares in the image are where shifts are happening and the list of html elements help identify the culprits in the code base, and depending on the scores these may require fixing.

During the tests the CPU and network are throttled. Currently only Moto G4 for mobile and a standard desktop (1920x1080) are supported. Report links are accessible, shareable and available for 14 days after generation.

The Chrome User Experience Report data is pulled from the Google Chrome UX Report API for the webpage and relevant origin in question to provide extra context.

How to fix the Cumulative Layout Shift score?

Cumulative Layout Shift is a Core Web Vital metrics which measures the instability of content by summing shift scores across layout shifts that don't occur within 500ms of user input. It looks at how much visible content shifted in the viewport as well as the distance the elements impacted were shifted. The most common causes for CLS and its potential solutions are:

Known Issues

Frequently Asked Questions

How to use the experimental cookie interstitial feature?

Keep in mind that using this feature may impact (either positively or negatively) the Cumulative Layout Shift scores. It is highly recommended to perform tests for both scenarios.

To utilize the experimental feature, fill in the URL. Next, add the text of the HTML element to click, often this is "Accept", "Accept all", "Verstanden" (German) or "OK", etc.

Optionally but highly recommended: check what type of HTML element this text is located in. Currently only 'button', 'div', 'span' and 'a' are supported.

A few tips:

How to test Cumulative Layout Shift from different countries?

With the Cumulative Layout Shift Debugger it is possible to check the Cumulative Layout Shift from countries other than the United States, and simulate the geographic location of a real user. Select a country from the dropdown and click the "Check CLS score" button.

How long does it take to generate a report?

The test will take several minutes to complete because:

Why does the CLS Debugger not load my URL?

There are several reasons why the URL may be inaccessible:

Identifying the CLS Debugger requests

The CLS Debugger fetches webpages from data centers and emulates real user sessions by initiating normal browser sessions. Browser sessions can be identified by the User Agent ending with - webvitals.dev and the X-Request-ID starting with webvitals.

Related Tools

Disclaimer

Every line of code for the Cumulative Layout Shift Debugger is written by SEO expert and ex-Google engineer Fili for free use on this website.

Bugs will happen. Despite best efforts to maintain the code base and data quality, no guarantees can or will be given. Data may be incomplete and/or errors may occur. Use at your own risk.