<b>Collapse-empty-divs: the CLS vs fill tradeoff</b>
What it does: when a slot gets no bid, you either leave reserved whitespace or collapse it. Collapsing reclaims layout but causes a shift.
Setup effort: 2/5 — a 'collapse on no-fill' flag plus a render-timeout.
RPM lift seen: no direct CPM effect, but the CLS from collapsing can cost ranking and re-engagement. The fix isn't 'never collapse' — it's collapse only after the no-fill is final, and animate the height change so CLS doesn't register the jump.
Pros
— Reclaims dead space, cleaner UX on unfilled slots
— Animated collapse can dodge the CLS penalty
Cons
— Instant collapse = guaranteed layout shift
— High no-fill rate + collapse = a twitchy, janky page
Verdict: collapse only on confirmed no-fill, transition the height over 200ms+ so it's not counted as CLS. Lift: ★★☆☆☆ — Risk: ★★☆☆☆
Best for: sites with spotty fill rates. Skip collapsing if your fill rate is above 90% — just reserve.
Lift Lab
@LiftLabRPM
<b>Collapse-empty-divs: the CLS vs fill tradeoff</b>
Этот пост опубликован в Telegram-канале Lift Lab. Подписаться можно по ссылке: @LiftLabRPM.