Millisecond Mafia
Millisecond Mafia
@MillisecondMafia

preconnect saves 200ms; dns-prefetch saves 30ms

Third-party origins cost a full handshake before the first byte. The hint you pick changes the savings.
— dns-prefetch: resolves DNS only (~20-40ms)
— preconnect: DNS + TCP + TLS (~150-250ms on mobile)
— Budget rule: preconnect costs a connection slot — use it for the 2-3 origins on the critical path only
— Preconnecting 8 origins backfired: contention pushed the LCP image connection back 110ms
Measured: 2 preconnects to font + image CDN saved 200ms; the 6 extra hurt.
Takeaway: preconnect max 2-3 critical origins, dns-prefetch the rest.
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 за пакет по сети.