-
Notifications
You must be signed in to change notification settings - Fork 108
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
Log CWV events to the console #77
Comments
Hi @rviscomi and @addyosmani I've opened a PR with a proposed Console Logging option here: #80 |
Comment from the related PR:
|
Leaving this open to continue exploring the logging levels feature described in the previous comment. |
So #115 introduced a summary table of key info, as well as the full, detailed, Performance Observer entries, with extension options to have one or the other or both. Rick's suggestion is to link these to the console log levels: Perhaps tables as |
Thinking about this some more I'm not 100% sure using the DevTools levels are are better way of going compared to turning it off an on in the extension options. I do wonder if we should leave those levels for the developer to manage in their own apps and it if might be more confusing to enable something and not see it if they have verbose turned on/off by default. |
Is your feature request related to a problem? Please describe.
The CWV values reported by the extension are useful snapshots of the UX, but they don't necessarily have any diagnostic information for developers to understand what could have caused adverse experiences.
Describe the solution you'd like
I'd like to see the extension utilize console logging more to leave an audit trail to assist developers with debugging CWV issues. For example, log the times at which CLS changes and if possible attribute each shift to the culprit element. Or for LCP, log the elements that are considered the largest and the times at which they are painted. For FID, it'd be helpful to know the timestamp of the first input and what was clicked.
The extension can be a first class developer tool for not only understanding how pages are experienced but also debugging how to make them better. Stretch goal: maybe like a VisBug for performance?
The text was updated successfully, but these errors were encountered: