Vue · Senior · Question 22 of 75

What does lazy hydration in Vue 3.5 enable?

const Comments = defineAsyncComponent({
  loader: () => import("./Comments.vue"),
  hydrate: hydrateOnVisible(),
});

Explanation

Other strategies include hydrateOnIdle, hydrateOnInteraction and hydrateOnMediaQuery. The HTML is visible immediately, but JS for below-the-fold parts loads later.

Further reading

Problem with a question

Vue · Senior · question 22

Test yourself

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

Take this quiz