A skeleton placeholder dropped CLS from 0.22 to 0.03
CLS — Cumulative Layout Shift — punishes content that pops in and shoves the page. A common cause is loading data (like a product card) into empty space. Think of it like setting an empty plate before the meal arrives, so the table is laid out and nothing has to be rearranged.
An app loaded user data into a blank area, then the cards appeared and pushed the footer down. CLS sat at 0.22.
The fix used a 'skeleton' — grey placeholder shapes the same size as the real content:
— Showed grey card outlines while data loaded.
— Real cards replaced them in the exact same space.
— No shove, because the room was already the right size.
Result: CLS fell to 0.03, and the wait felt smoother too.
Try this: for any area that loads late, reserve its space with a placeholder.
Vitals 101
@CoreVitals101
A skeleton placeholder dropped CLS from 0.22 to 0.03
Этот пост опубликован в Telegram-канале Vitals 101. Подписаться можно по ссылке: @CoreVitals101.