Vitals 101
Vitals 101
@CoreVitals101

Preload vs preconnect: two early hints

Preload vs preconnect: two early hints

Both are <link> tags that warm things up before the browser asks. But they do different jobs. Preconnect opens an early handshake with another server (like a font host). Preload fetches one specific file you know you'll need.

Think of preconnect as calling ahead to the restaurant, and preload as ordering your dish before you arrive.

When to use which:
— You load fonts or images from a third-party domain: preconnect to that domain.
— You have one critical file (your LCP image, a key font) that loads late: preload it.

Try this: add <link rel="preconnect"> for each outside domain in your page source, but only for the ones that load early. Two or three is plenty. Too many actually slows things down.
Этот пост опубликован в Telegram-канале Vitals 101. Подписаться можно по ссылке: @CoreVitals101.
tech

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

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

start

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

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

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