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.
Millisecond Mafia
@MillisecondMafia
Speculation Rules prefetch made next-page LCP feel like 0ms
Этот пост опубликован в Telegram-канале Millisecond Mafia. Подписаться можно по ссылке: @MillisecondMafia.