Chrome DevTools debugging for Cumulative Layout Shift (CLS)

Profiling the time frame

1. Profiling

Open the Performance tab and click the reload button

Chrome DevTools debugging for Cumulative Layout Shift (CLS)

And it will start profiling your page.

Chrome DevTools debugging for Cumulative Layout Shift (CLS)

2. Report

  1. There is a time frame on the top. Scroll it to the beginning. The CLS usually happens from the beginning.
  2. There is a session windows screenshot. You can see where is the difference between different session windows. You can compare it and find out which element is moving.
  3. There is an Experience section that shows the CLS that happen in that period.
  4. The CLS elements detail will show in the bottom section

Chrome DevTools debugging for Cumulative Layout Shift (CLS)

View the rendering CLS highlight directly

1. Active rendering highlight

Open the menu and click More tools / Rendering

Chrome DevTools debugging for Cumulative Layout Shift (CLS)

Enable the Layout Shift Regions checkbox.

Chrome DevTools debugging for Cumulative Layout Shift (CLS)

2. View the screen

CLS will be highlighted in blue on the page

Chrome DevTools debugging for Cumulative Layout Shift (CLS)

Reference