Skip to content

LCP in lighthouse vs PerformanceObserver API #15787

Answered by connorjclark
aadisarma7 asked this question in Q&A
Discussion options

You must be logged in to vote

There's an audit in the LHR called metrics that has observedX metrics, the actual value of the metrics. You could disable emulation, or just read the observed values, to get results that match using Perf observer manually. Of course there could be other differences between LH and a manual inspection, you'd have to present some example LHRs / websites for us to say more.

The values for phase breakdown in largest-contentful-paint-element will be simulated if emulation is used, otherwise will be observed. Simulation does not change what element is the LCP (but of course, mobile vs desktop runs may differ).

@adamraine should we add to metrics the observed phase breakdowns?

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@aadisarma7
Comment options

@aadisarma7
Comment options

@connorjclark
Comment options

Answer selected by aadisarma7
@adamraine
Comment options

@aadisarma7
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants