Replies: 2 comments 3 replies
-
We don't really have a publicly exposed API for this unfortunately. As an example, this is how LCP computes it's 0-1 score: https://github.com/GoogleChrome/lighthouse/blob/main/core/audits/metrics/largest-contentful-paint.js#L82 And this is how the 0-1 scores of all metrics are used to compute the overall 0-1 performance score: https://github.com/GoogleChrome/lighthouse/blob/main/core/scoring.js#L73 |
Beta Was this translation helpful? Give feedback.
0 replies
-
This may be of use to you: https://github.com/paulirish/lh-scorecalc/tree/master/script |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have all the 6 web vital values that are used to calculate the performance score. Since I don't know the corresponding metric scores lighthouse uses I cannot calculate the performance score on my own. Is there an API call I can use in code where I can add these web vital values and get a response with the performance score?
Beta Was this translation helpful? Give feedback.
All reactions