Skip to content
Discussion options

You must be logged in to vote

The values are not displayed in the report, however they are stored under the hidden metrics audit:

const metrics = lhr.audits['metrics'].details.items[0];
const onload = metrics.observedLoad;
const dcl = metrics.observedDomContentLoaded;

It should be noted that these values are not throttled by default and will not line up with the other Lighthouse metrics. If you need to get the throttled DCL and onload events, turn on DevTools throttling via the config:

const config = {
	extends: 'lighthouse:default',
	settings: {
		throttlingMethod: 'devtools',
	}
}

For more on throttling: https://github.com/GoogleChrome/lighthouse/blob/master/docs/throttling.md.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@qkrdlsrnjs11
Comment options

@qkrdlsrnjs11
Comment options

@adamraine
Comment options

@qkrdlsrnjs11
Comment options

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