Lighthouse doesn't wait long enough for page to load (NO_LCP)
See original GitHub issueSteps to reproduce
- Run
lighthouse https://clientes-bancocaminos.grupocaminos.es
- Open report
What is the current behavior?
On CLI I get:
largest-contentful-paint:warn Caught exception: NO_LCP
On DevTools I get:
Largest Contentful Paint Error!
Something went wrong with recording the trace over your page load. Please run Lighthouse again. (NO_LCP)
What is the expected behavior?
I don’t expect any errors.
Environment Information
- Affected Channels: CLI, DevTools
- Lighthouse version: 6.1.1
- Chrome version: 84.0.4147.105
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Using Lighthouse to improve page load performance
Lighthouse is an automated tool for improving the quality of your site. You give it a URL, and it provides a list of...
Read more >How to fix “Lighthouse returned error - NO_FCP - Woorkup
PageSpeed Insights is powered by Google Lighthouse. It has a 15-second timeout associated with it. So if your page doesn't load or respond ......
Read more >Lighthouse Field data is not updated for a very long time, what ...
This means that if layout shifts occur once you scroll the page (due to lazy loading not working effectively for example) it will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
From the technical page load perspective yes but lighthouse treats FCP specially so we’ll probably still want both for two main reasons.
maxWaitForLoad
)Ah thanks for the example report, in that case it looks like Lighthouse did not wait long enough for the page to completely finish. You can control this from the CLI with the
networkQuietThresholdMs
in a custom config, but we should try to wait long enough for LCP at least too.