Next.js · Junior · Question 45 of 75

When does <Link> prefetch a route?

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.

Further reading

Problem with a question

Next.js · Junior · question 45

Test yourself

Take the Next.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz