QuizNot attempted
Link prefetching and metadata
1–4 to choose, Enter to submit
Show answer & explanation
Correct answers:
- In production,
<Link>prefetches routes as they scroll into view, so navigation feels instant - Server Components can export
metadata(orgenerateMetadata) to set title and Open Graph tags without client JS
- In production
<Link>prefetches routes as they enter the viewport (static routes fully, dynamic ones up to the nearestloading.js), and Server Components can exportmetadata/generateMetadataso tags are in the server HTML with no client JS. - Not 'Link required for external sites': use a plain
<a>for external links. - Not document.title in an effect: that runs only on the client, too late for crawlers and link previews.