Optimize Vue 3 SSR with lazy hydration, delaying HTML hydration until it's needed for better performance
npm install @vercube/vue-lazy-hydration@vercube/vue-lazy-hydration> Lazy Hydration of Server-Side Rendered for Vue 3
``shell`or npm / yarn
$ pnpm add @vercube/vue-lazy-hydration
For Vue applications, you can register LazyHydration either globally or locally within your components.
`typescript
import { createSSRApp } from 'vue';
import { LazyHydration } from '@vercube/vue-lazy-hydration';
const app = createSSRApp({});
app.component('LazyHydration', LazyHydration);
`
`html`
To use LazyHydration Hydrated when component will be visible on screen just wrap your component with wrapper.`html`
You can also use it with composable
`html
`