Closed Erseni closed 3 years ago
To aid anyone who wants to work on this
Interesting would be the four numbers for:
And the three Core Web Vitals:
There are some Services which provide these values
or Browser Extensions
or the npm package which all these tools use:
In order to generate a badge on-the-fly, we would need to be able to query a service that returns machine readable data quickly (a few seconds absolute max). Both of those services return a human-readable response and take too long to do it (I think fundamentally the reason is the checks they are doing just take a long time to do).
I think the NPM package you're referring to is this one https://github.com/emazzotta/lighthouse-badges which runs the tests then spits out some static images using our library and the reason they've chosen to do it that way is because it just takes too long to do the checks for it to be an ad=hoc service. I think using that lib to generate static images is probably your best option.
Shall we close this given the limitations/challenges discussed above?
:clipboard: Description
What about the Lighthouse Metric Numbers and the Core Web Vitals? Anyone working on these Badges?