prefetching
Loading a route's data in the background before the user clicks, so navigation feels instant.
In more detail
The browser or framework guesses what the user will need next, such as the page behind a visible link, and downloads it ahead of time. Done well it makes navigation feel instant; done too eagerly it wastes bandwidth.
Example
Next.js prefetches routes whose Link components enter the viewport, in production only; dynamic routes are prefetched down to the nearest loading.tsx.Related terms
- Link component — The Next.js component for in-app links, which navigates without a full reload and prefetches the target.
- Router Cache — The fourth Next.js caching tier: the browser keeps RSC payloads of visited and prefetched route segments in memory for instant navigation.
- viewport — The visible area of a web page in the browser window or device screen.
Taught in
- Router Cache: In-Memory Client Prefetch Semantics — Next.js 15 & Modern App Router Architecture