Millisecond Mafia
Millisecond Mafia
@MillisecondMafia

loading=lazy on the hero image added 1.2s to LCP

loading=lazy on the hero image added 1.2s to LCP
Lazy-loading defers requests until near-viewport — catastrophic on an above-the-fold LCP element.
— A blanket 'lazy-load all images' rule tagged the hero with loading="lazy".
— Browser deprioritized it, waited for layout to confirm visibility, then fetched: LCP request started 1200ms late.
— Removed lazy on the hero, kept it on below-fold images: LCP 2.9s -> 1.7s.
— Below-fold lazy-loading still saved 340KB of initial transfer — that part was correct.
Lazy-load below the fold, eager-load (or fetchpriority=high) above it. The LCP element must never be lazy.
Takeaway: 1.7s LCP — never lazy-load what's in the first viewport.
Этот пост опубликован в Telegram-канале Millisecond Mafia. Подписаться можно по ссылке: @MillisecondMafia.
tech

Свежие посты в категории «Tech Infrastructure»

Все каналы категории →

start

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

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

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