Vitals 101
Vitals 101
@CoreVitals101

Deferring 3 scripts improved LCP by 0.9s

Deferring 3 scripts improved LCP by 0.9s

When a script sits in the <head> without instructions, the browser stops building the page to download and run it. Think of it like a delivery driver blocking your driveway while they sort the whole truck. Nothing else moves.

A site had three tracking scripts in the head. Each one paused page-building, delaying when the main content appeared, pushing LCP to 3.5s.

The fix was one word per script:

— Added the defer attribute to each script tag.
— defer tells the browser: keep building the page, run these after.

Result: content appeared 0.9s sooner, LCP dropped to 2.6s, and the scripts still ran fine.

Try this: look at scripts in your <head>. If they don't need to run immediately, add defer. It's one of the safest wins out there.
Этот пост опубликован в Telegram-канале Vitals 101. Подписаться можно по ссылке: @CoreVitals101.
tech

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

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

start

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

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

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