Millisecond Mafia
Millisecond Mafia
@MillisecondMafia

CLS 0.18 -> 0.01 by adding width/height

A recipe site rendered images without intrinsic dimensions; each one pushed content down as it loaded.
— 6 inline images, each a ~0.03 shift as they reserved space on load.
— Added explicit width and height so the browser reserved the aspect-ratio box before download.
p75 CLS: 0.18 | 0.01
Failing CLS URLs in CrUX: 71% | 4%
Takeaway: 0.17 of layout shift was six images missing two HTML attributes each.
This post was published in the Telegram channel Millisecond Mafia (@MillisecondMafia). All its posts are on the channel page.
Open on Telegram

Latest posts in “Tools and infrastructure”

All channels in this category →

реклама в сети

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.