Chapter 5. Tutorial: Place Your First Ad

Step 6: Prove That Nothing Moves

  1. In the developer tools, open the Performance panel and reload the page. Scroll down past the ad and back up.

  2. Look at the Cumulative Layout Shift value. The ad should add nothing to it. If the panel lists a layout shift involving the ad, the reserved space is too small for this screen size; go back to Step 5.

  3. When you are happy, set Debug back to No. Visitors never see the bar, but you will see your pages exactly as they do.

After a few weeks, check PageSpeed Insights again, as described in the section called “Measuring Layout Shift”. The real-visitor CLS for your pages with ads should be lower than the measurement you took before you started.