Chapter 4. Understanding Layout Shift and Ads

Measuring Layout Shift

Measure before you start, and again after you have placed your ads, so you can see the difference.

PageSpeed Insights

Enter a page address at pagespeed.web.dev. The top of the report shows how your real visitors experienced CLS over the last 28 days, when Google has enough data. The Diagnose performance issues section below it shows one test run, and under Avoid large layout shifts it lists the elements that moved. Real-visitor data takes up to 28 days to reflect a change.

Your browser's developer tools

In Chrome, press Ctrl+Shift+I (Cmd+Option+I on a Mac) and open the Performance panel. It shows the CLS of the page as you use it, live, and highlights each shift. This is the quickest way to check a single slot, and you can switch on device emulation to see it at phone width.

Tip

Scroll all the way down the page when you test. With lazy loading, ads further down only load as you reach them, so a test that stays at the top of the page never sees them.

On This Page