Skip to content

QuizNot attempted

Link prefetching and metadata

Which statements about <Link> and the Metadata API are true?

Select all that apply.

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 (or generateMetadata) 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 nearest loading.js), and Server Components can export metadata/generateMetadata so 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.