-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt Performances: Present and Future #6467
Comments
https://github.com/maoberlehner/vue-lazy-hydration |
Will update thank you @Niputi |
I'm happy to share Chrome is donating $12,000 to support Web Performance optimizations on the Nuxt.js roadmap 🎉 We think this project's goals align well with helping reduce the initial bundle size of modern web experiences, like those built with Vue. In particular, we're excited to see the project explore the proposed work on:
We know the work to upgrade to Webpack 5 has been a long one and are looking forward to seeing those changes land too! We hope this funding helps support your work just a little :) ~ signed Addy, @stubbornella and @spanicker |
The term SWR is new to me. Can you clarify? |
SWR = stale-while-revalidate :) |
@addyosmani ah gotcha, thank you :) |
This is great news |
https://github.com/bazzite/nuxt-optimized-images Does this cover size-optimize for the Image Module? |
Actually, the nuxt-optimized-images handles the resize but it’s handled in Webpack directly, we also want to provide a system where your images are external or in the static directory :) |
Can you consider reducing the size of nuxt in the production environment? I found that when using Docker to package images, even in a production environment, the size is 400 ~ 500M, which is a waste of resources Is it possible to consider compiling into a single Javascript file so that the user can further reduce the size by some tool. eg. webpack/ncc So users can run the application by running the following command > nuxt build
> cd ./dist
> ls -lh
total 44040192
-rw-r--r-- 1 root staff 44040192B 12 29 13:45 index.js
> node ./index.js
Listen on port 3000 I hope the final production environment file is ideal in the size of |
@axetroy Have you tried using |
@danielroe |
@axetroy I've spent some time slimming Nuxt Docker images, and If you are starting Nuxt programmatically, you could try listing just The issue you highlight is, I think, not an issue with Nuxt per se but in the nature of node_modules-based projects. |
Sounds like Yarn v2 does what you wanted. |
I LOVE NUXTJS! |
hi @atinux, i want to suggest also this optimization for the future: https://develoger.com/how-to-obfuscate-css-class-names-with-react-and-webpack-20e2b5c49cda |
@happynautpro you are talking about incremental static generation? |
@atinux yes I’m talking about incremental static generation but I guess the module doesn’t solve the problem. I’m looking for a solution to generate only routes which are changed or a new instead of deploying a whole static site from zero, each time there is only a content change. Use case would be: Imagine of a site with 1M pages and static hosting (no SSR runtime). In the current scenario, you have to deploy all 1M pages again, if there is only one mirror content change (I’m not talking about code changes). Wouldn’t it be smarter to deploy only the route again, where the content has changed? |
I totally agree that incremental static generation should be a feature should be on the roadmap for the nuxt team going on in the future, but providing a generic incremental build feature may be hard for the Nuxt team to implement themselves as Nuxt currently cannot know the relationships between each piece of data and the pages at build time. Gatsby solves this problem by forcing the user to fetch data via GraphQL, with GraphQL then defining a query that describes the data needed letting Gatsby know what pages need to be rebuilt whenever specific data is changed. With that being said, talk about this feature might be better discussed in the GraphQL module for Nuxt, as this is a feature that kind of lies inbetween nuxt core and the nuxt GraphQL module which puts the core team in a weird spot if they were to develop this. Maybe the solution is a module that interfaces with Nuxt's community Apollo Module? I really do not know, but then we'd be looking at modules for modules which i'm not even sure would be possible (or preferable) |
Could the @nuxt/content module use something like the build cache but for filtering the files that need to be generated? If only one file in the |
Any update of this feature? |
@patrickcate There is a work in progress nuxt image module |
I agree, Snowpack and full Hybrid SSR Static and SWR Support would be support amazing! Right now rebuilding for static on changes takes ages. |
Hybrid SSR and SWR will be supported for Nuxt 3 by default, and back-ported to Nuxt 2 as a module. We are actually testing it before initial release. |
@atinux Sounds pretty cool! Is there any rough estimation about when it will be released? |
Q1 2021 |
@atinux Hey! Would you suggest to start an app with Nuxt v2 or wait for Nuxt v3? |
You can start with Nuxt 2, the migration will be easy for Nuxt 3 |
@atinux Hi , is the roadmap available ? apparently nuxt 3 is in beta but we don't know when the stable will be released |
@maazdev Actually where can I get the beta version? |
Would love |
Can you use a plugin to run code once on app start up? |
@shadow81627 how would you do that and only have it run at the start of generate, not on every route? |
@atinux Hi do you have a roadmap or date for nuxt 3 ? I saw your slides but there was no roadmap either here or on twitter I'm wondering if there is an issue? |
It's should be available in Q2. Wait a bit til the end of the month. It may be publicly released. 👌🏻 Asking here will not help the team polish it properly. 🤗 If there is no exact date, it's probably because stuff happens and that it's sometimes difficult to judge the required amount of time to finish something. |
@kissu thanks for your answer I'll wait then. |
nuxt 3 super slow, very much disappointed, waited since 2019... |
There is a public npm nuxt 3 package https://www.npmjs.com/package/nuxt3 |
Does anybody remember the issue where @pi0 gave insights on how to load plugins (I think it was plugins) in a non-blocking way? There were several examples with dynamic imports as well if I recall correctly. But I cannot find it. And it's not documented (yet). Sorry to add a request like this in this issue, but I think it could be helpful to have it linked here too. 🙏🏽 |
@gangsthub Here you go: Reduce Blocking time of Nuxt Applications #9061! |
@mfrascati wow, that was quick! Thank you! ...it was a discussion!! That's why I couldn't find it 😅 |
Posting here to grab community feedback. We've made a solution for incremental builds in Nuxt 2.0 and want to PR the solution. Would love everyone's feedback on approach before we make the PR! Issue here #10148 |
On top of letting your write Vue files, creating pages with the filesystem and managing your SEO with vue-meta, the NuxtJS team and contributors worked a lot of shipping by default an efficient and performant web application.
What do we have today:
nuxt build —-modern
nuxt build —analyze
What do we plan to do:
app.vue
file (including onlyvue
andvue-meta
)How to accomplish this:
Maintaining an open source project requires consistent effort, not just with adding code, but also code reviews and support. The NuxtJS team and contributors coordinates their efforts on Discord. We all work on our free time to maintain it and I do believe the Chrome Performance Fund could help us to pay ourselves and our contributors on this future work thanks to our Open Collective.
The text was updated successfully, but these errors were encountered: