Giter Site home page Giter Site logo

Comments (7)

Baroshem avatar Baroshem commented on May 20, 2024 1

I can try to implement it if you like the idea :)

from devtools.

antfu avatar antfu commented on May 20, 2024 1

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.

from devtools.

antfu avatar antfu commented on May 20, 2024

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.

from devtools.

Baroshem avatar Baroshem commented on May 20, 2024

So you would recommend to implement this as a part of the Web Vitals module, not the new tab in the devtools?

from devtools.

antfu avatar antfu commented on May 20, 2024

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

from devtools.

Baroshem avatar Baroshem commented on May 20, 2024

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?

from devtools.

Baroshem avatar Baroshem commented on May 20, 2024

Makes sense!

I will create an issue in the module repository then :)

from devtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.