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.

Help with understanding LCP metrics

See original GitHub issue

Hi 👋

We are facing with large LCP metrics on www.powerthesaurus.org. And we even can’t get why does this happen.

According to the trace that I see in the Lighthouse report, almost all the content is shown right after page load (especially the main content). But LCP is postponed far away.

Profile-20200608T190653.json.zip

image

Can you give us a bit of advice from where to start?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
patrickhulcecommented, Jun 9, 2020

Glad you found the issue!

The only question I have now is why this highlighted header block is treated as LCP?

That appears to legitimately be the largest text node on the page and there are no large images.

If there are no further problems, I’m going to go ahead and close this out but feel free to come back if you believe there’s something Lighthouse needs to change 😃

1reaction
ElForasterocommented, Jun 9, 2020

@patrickhulce Finally, the root of the problem was found. We had an extra top-level <Suspense /> component in our App that shouldn’t be in the production build. Despite the fact, there weren’t any async-loading components during initial rendering, this extra <Suspense /> caused such strange behavior.

image

I hope this will help someone facing a similar issue.

Now LCP metrics look truthfully.

image

The only question I have now is why this highlighted header block is treated as LCP? Probably we can just ignore this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Largest Contentful Paint (LCP) - web.dev
The Largest Contentful Paint (LCP) metric reports the render time of the largest image or text block visible within the viewport, relative to ......
Read more >
What Is Largest Contentful Paint: An Easy Explanation
LCP is an easy metric to understand because all you have to do is look at your webpage and determine what the largest...
Read more >
Largest Contentful Paint (LCP): what it is and how to improve it
Largest Contentful Paint is the metric that allows you to measure the loading time of the largest visual element of a site.
Read more >
How to measure and optimize Largest Contentful Paint (LCP)
LCP or Largest Contentful Paint is a new web performance and user experience metric. It aims to reflect the loading performance of a...
Read more >
Largest Contentful Paint: What It Is and How to Improve It
One of the most popular tools to measure the LCP is Google's PageSpeed Insights. It is a free tool that helps users analyze...
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