-
Notifications
You must be signed in to change notification settings - Fork 153
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Performance tab with Web Vitals integration #594
Comments
I can try to implement it if you like the idea :) |
Sounds like a nice idea! Since we have the web-vital module, I guess it would be better to have the devtools integrations in the module directly. |
So you would recommend to implement this as a part of the Web Vitals module, not the new tab in the devtools? |
Modules could extend DevTools tabs: https://devtools.nuxt.com/module/guide, users would see the tab only when the module is installed. A lot of modules are doing this way |
Yeah yeah, I understand that. But in general, you would recommend to have this Performance tab only visible when a user has this module installed? |
To me, it's not about when it is visible, it is about the scoping. If Nuxt has Web Vital built-in, then it makes sense to have it built in Nuxt DevTools. You can argue that there are a lot of things that are crucial to web development that might be worth including by default, like a11y, i18n, SEO, sitemaps, PWA..., and a lot of things. But it turns out that's the point of having modules - to allow each integration to be scoped and composed, while also allows different solutions and opinions to coexists. |
Makes sense! I will create an issue in the module repository then :) |
馃啋 Your use case
Having up to date info about the performance of the page (even in development) can be really useful. There is a module https://www.npmjs.com/package/@nuxtjs/web-vitals that integrates with the npm package with the same name that allows to display the values of the web vitals inside your console tab.
馃啎 The solution you'd like
I would love to see similar functionality in the devtools so that the users could observe there what are the current values of the metrics.
馃攳 Alternatives you've considered
Not really. The alternative is to use the Web Vitals
鈩癸笍 Additional info
Apart from just getting the values of metrics, w could also display some hints on what user could do to improve the value of certain metric.
The text was updated successfully, but these errors were encountered: