Millisecond Mafia
Millisecond Mafia
@MillisecondMafia

Speculation Rules prefetch made next-page LCP feel like 0ms

Speculation Rules prefetch made next-page LCP feel like 0ms
The fastest navigation is one that already happened. Speculation Rules prerender pages before the click.
— Added a <script type="speculationrules"> block to prerender links on moderate hover confidence.
— On click, the prerendered page activated instantly: measured next-nav LCP 1.9s -> ~0.1s (activation only).
— Gated by hover/eagerness to avoid wasting bandwidth: prerender hit rate ~64%, wasted prerenders ~36%.
— Capped concurrent prerenders at 2 to protect the current page's main thread and data budget.
Prerendering moves the cost before the intent. Tune eagerness so the hit rate justifies the wasted fetches.
Takeaway: ~0.1s perceived LCP on prerendered navigations, 64% hit rate.
Этот пост опубликован в Telegram-канале Millisecond Mafia. Подписаться можно по ссылке: @MillisecondMafia.
tech

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

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

start

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

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

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