maoberlehner / vue-lazy-hydration

Lazy Hydration of Server-Side Rendered Vue.js Components
MIT License
1.18k stars 52 forks source link

Nuxt.js support #62

Closed siwel closed 3 years ago

siwel commented 3 years ago

Hey,

What version of NUXT are supported?

When using Nuxt.js v2.13.3, on universal mode with SSR, the components are still loaded on the client with JS

Thanks, Lewis

maoberlehner commented 3 years ago

Hello!

Do you mean that they are hydrated or that they are loaded? For the later see https://github.com/maoberlehner/vue-lazy-hydration#prevent-javascript-bundle-loading

maoberlehner commented 3 years ago

Just checked it in a Nuxt.js v2.13.3 environment: SSR only and delayed hydration works as expected. For info about how to prevent loading of the JS see workarounds discussed in https://github.com/vuejs/vue/issues/9847 Thx!