Chapter 4. Understanding Layout Shift and Ads

Abstract

Why ads make pages jump, how Google measures it, and the ideas CLS Ad Slot uses to stop it: reserved space, breakpoints, lazy loading, and what happens when an ad never arrives.

This chapter covers only what you need to place ads well. For the full picture of how page speed is measured, see the Understanding Performance chapter of the JCH Optimize Documentation.

What Layout Shift Is

A layout shift happens when something that is already visible on the page moves because something else appeared, grew or shrank. You have felt it: you start reading, an ad loads above the paragraph, and the text slides away. Or you reach for a button and tap an ad that has just pushed its way into the same spot.

Google measures this as Cumulative Layout Shift (CLS). The score grows with how much of the screen moves and how far it moves. A score of 0.1 or less is “good”; above 0.25 is “poor”. CLS is one of the three Core Web Vitals, which Google measures on your real visitors' devices and uses as a ranking signal.

On This Page