maoberlehner / vue-lazy-hydration

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

Improved integration in meta frameworks like Nuxt.js and Gridsome #20

Open maoberlehner opened 5 years ago

maoberlehner commented 5 years ago
addyosmani commented 4 years ago

Hey, @maoberlehner. I'm happy to share Chrome is donating $2,000 to support vue-lazy-hydration's goals around improving support for meta-frameworks like Nuxt and fixing https://github.com/vuejs/vue/issues/9847 🎉 We think this project's goals align well with helping reduce the impact of hydration on user interactivity.

Great work so far! We hope this helps!

~ signed Addy, @stubbornella and @spanicker

ofek-a commented 4 years ago

@addyosmani This is amazing! Thank you!

jeanphilippeds commented 4 years ago

Hello @maoberlehner,

I just opened a pull request to fix this issue: https://github.com/vuejs/vue/pull/10794

Hope this helps :)

maoberlehner commented 4 years ago

@jeanphilippeds this is amazing! I was already investigating how we can work with this in Nuxt.js and Gridsome, but unfortunately, I currently can't give this my full attention. All the more reason I appreciate your help!

jeanphilippeds commented 4 years ago

I'm just worried about the fact that there was no Vue release since March, I'm wondering if we will have to wait for Vue 3 :/

jeanphilippeds commented 4 years ago

@maoberlehner I forked vue-server-renderer and it's working great on my Nuxt project :)

ramonmostert commented 4 years ago

@jeanphilippeds Not really sure what you mean. Did you manage to get lazy-hydration to work with nuxt? I would like this too. Is there a way to work around waiting for the pull request to get merged?

sisou commented 4 years ago

@jeanphilippeds Can we also use your forked vue-server-renderer to prevent js bundling in our Nuxt projects? Could you give a few instructions how to do so? Thank you! :+1:

fibigerg commented 4 years ago

@jeanphilippeds It would be great to use your vue-server-renderer until the pull request is processed. I see your changes here https://github.com/jeanphilippeds/vue/commits/add-option-to-render-or-not-async-scripts Are these relevant?

hereiscasio commented 3 years ago

Hi, @maoberlehner, @jeanphilippeds Does this issue related to what I posted as here?

If it is true. It seems, at least now, only the possible workaround will be this one ( note, Nuxt modern mode can't workaround what we want any more)

Thanks,