Skip to content
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

Add a property to the metric object to help identify bfcache restore instances #214

Closed
philipwalton opened this issue Apr 23, 2022 · 0 comments
Milestone

Comments

@philipwalton
Copy link
Member

In order for performance metrics to properly capture real-user experience, they also need to be reported in cases where a browser optimization made the experience really good.

Not reporting in these cases could result in overall regressions in the aggregate numbers as browsers improve. However, good experiences due to browsers optimizations are sometimes not relevant to web developers trying to diagnose specific performance problems.

The ideal solution to both of these concerns is to annotate when these browsers optimizations are happening, so developers can exclude them from reporting in situations where those experiences are not relevant (e.g. when trying to understand slow network response times).

In this library we can add something like a navigationType or visitTypeproperty to the Metric object and set its value to back_forward_cache (name TBD) for bfcache restores or the browser-reported navigationType in all other cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant