System Design · Middle · Question 30 of 75
How do you speed up navigation to the page the user is likely to open next?
- ✓Correct answer: Prefetch code and data based on user intent
- 2Load every page of the site on the first visit
- 3Disable the browser cache so data is fresher
Explanation
Prefetching based on user intent makes navigation nearly instant without wasting bandwidth on everything. Next.js <Link>, queryClient.prefetchQuery on onMouseEnter, <link rel="prefetch">, the Speculation Rules API.