Skip to content

QuizNot attempted

Preloading before hydration

This app awaits the current route's lazy chunks before calling hydrateRoot on a prerendered page. What does that buy?
1–4 to choose, Enter to submit
Show answer & explanation

Correct answer:

  • Hydration can finish in one pass: the lazy page doesn't suspend, so it becomes interactive as soon as the code runs
  • If the page's chunk isn't loaded yet, the lazy component suspends during hydration: that part can't be hydrated (and isn't interactive) until the chunk arrives and React retries.
  • Awaiting the chunks first, while modulepreload links have already started downloading them in parallel, lets hydration complete in one go.
  • Not "cannot be rendered to HTML": the prerender renders them by loading every page first.
  • Not "smaller HTML": it happens in the browser, after the HTML arrived.
  • Not "prevents the HTML from showing": the HTML is visible immediately
  • that's the point of prerendering.