question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lighthouse doesn't wait long enough for page to load (NO_LCP)

See original GitHub issue

Steps to reproduce

  1. Run lighthouse https://clientes-bancocaminos.grupocaminos.es
  2. 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:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
patrickhulcecommented, Sep 2, 2020

Would adding a _waitForLcp make _waitForFcp redundant?

From the technical page load perspective yes but lighthouse treats FCP specially so we’ll probably still want both for two main reasons.

  1. We want the thresholds for each to be very different (FCP on order of ~15s whereas LCP should be close to maxWaitForLoad)
  2. Failure of FCP means the entire run fails whereas LCP missing only fails a few audits.
1reaction
patrickhulcecommented, Jul 29, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found