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

Remove existing browser namespaced metrics #851

Merged
merged 6 commits into from
Apr 25, 2023
Merged

Conversation

ankur22
Copy link
Collaborator

@ankur22 ankur22 commented Apr 12, 2023

Now that we have web vitals, we have evaluated the existing browser metrics:

Our conclusion is that none of these metrics gives us more value or answers questions that we don't already have answers for from the web vitals. The web vitals concentrate on measuring and showing users how useable the website it, rather than these existing metrics which only show us how long it took to download the html file, it's dependencies and when the first element was rendered (usually the background colour).

closes: #831

After analysing this metric and discussing its usefulness we have
decided to drop it. We believe that it only informs the user of how
long it takes to download the html file, but nothing in terms of how
usable their website is to the end user.
This metric is a measure of how long it took to download the html file
and all its dependencies. It's not a useful measure of how useable the
website is.
This metric isn't useful as it only helps us work out how long it took
to render the first element on the page, which is usually the
background color. With web vitals a more useful metric is already
exposed and tells us more on how performant and useable a website is
(webvital_first_contentful_paint).
Since we're no longer emitting metrics from the frame_session, we can
remove the emitMetric method from frame.
The initTime was being used to subtract that away from the lifecycle
measurements when we used to record those metrics. This mechanism is
no longer needed since we've moved to working with the web vitals.
Copy link
Member

@inancgumus inancgumus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Less code! 🥳

Copy link
Collaborator

@ka3de ka3de left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ankur22 ankur22 merged commit 480c0c1 into main Apr 25, 2023
@ankur22 ankur22 deleted the remove/831-existing-metrics branch April 25, 2023 07:47
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

Successfully merging this pull request may close these issues.

Evaluate browser metrics against webvital metrics
3 participants