Prefetching
Prefetching loads the next page a visitor is likely to open before they click, so it appears almost instantly.
A page can hint the browser with `<link rel="prefetch">`, or, in Chromium browsers, use the Speculation Rules API to fetch or even fully prepare likely next pages.Source 1 A common trigger is hovering or focusing a link.Source 2
It is a trade-off: prefetching too much downloads pages nobody opens. Doing it on intent, when a pointer rests on a link, keeps the waste small.
How Regular approaches it
On regular.se the instant estimate starts loading as soon as you point at the button, so it opens without a wait, and nothing loads for visitors who never get near it.
BenjaminWeb designer for sustainable and circular businessesSources and further reading
- Speculation Rules API, MDN Web Docsdeveloper.mozilla.org
- Prefetching, Astro docsdocs.astro.build