GoogleChrome / web-vitals-extension

A Chrome extension to measure essential metrics for a healthy site
https://chrome.google.com/webstore/detail/web-vitals/ahfhijdlegdabablpippeagghigmibma?hl=en
Apache License 2.0
2.35k stars 105 forks source link

Add more logging for interactions #109

Closed rviscomi closed 1 year ago

rviscomi commented 1 year ago

To help debug INP issues, add the ability to log info about each interaction, similar to the feature that logs layout shifts.

@mmocny

mmocny commented 1 year ago

Will do.

One caveat: at the moment, web-vitals.js does not have a way to report every-single-interaction. You can only get a final INP report, or every change to the metric reported (i.e. every new highest).

What we want for logging is every interaction above a certain threshold (16ms? 50ms? 100ms?). This is really easy to do just using the Event Timing API directly.

brendankenny commented 1 year ago

PR in https://github.com/GoogleChrome/web-vitals-extension/pull/120