Next.js · Junior · Question 45 of 75
When does <Link> prefetch a route?
- ✓Correct answer: When the link enters the viewport (in production)
- 2Only after the link is clicked, as with normal navigation
- 3Right when the app loads - every route of the site
Explanation
Prefetching makes navigation instant. It's disabled in dev mode, so check navigation speed on a production build. The behavior is configured with the prefetch prop (false, true, 'auto'). In Next.js 16 prefetching became incremental: shared layouts are downloaded once.