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.

the User-centric Metrics "Largest contentful paint (LCP)" is not correct

See original GitHub issue

I have a question that page-load trigger too early,if my website render too lower,the ‘largest-contentful-paint’ doesn’t trigger, or only trigger once, but the page-load trigger, the ‘largest-contentful-paint’ time will not correct const sendPageLoadMetrics = () => { // to make sure PerformanceTiming.loadEventEnd has a value setTimeout(() => tr.removeTask(PAGE_LOAD)) } There’s something wrong with that logic

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
devcorpiocommented, Apr 20, 2022

Hi DongYu (@rainydayDY),

The fix has been released: https://github.com/elastic/apm-agent-rum-js/releases/tag/%40elastic%2Fapm-rum%405.11.0

Thank you for pointing it out

1reaction
devcorpiocommented, Mar 24, 2022

Hi DongYu,

We are about to start working on this. I’ll let you know once the PR is created.

Thanks, Alberto

Read more comments on GitHub >

github_iconTop Results From Across the Web

Largest Contentful Paint (LCP) - web.dev
This post introduces the Largest Contentful Paint (LCP) metric and explains how to measure it.
Read more >
What is Largest Contentful Paint (LCP), And How To Optimize It
LCP is a user-centric metric because the largest element in the viewport is usually the most important but also one that matters the...
Read more >
What is Largest Contentful Paint? How to Fix LCP Issues?
Largest Contentful Paint is an important, user-centric metric for measuring perceived load speed. Check out Publift's guide to understand in ...
Read more >
Largest Contentful Paint: How to optimize LCP? - AdPushup
According to Google,. “LCP is an important user-centric metric for measuring perceived load speed because it marks the point in the page load ......
Read more >
What is Largest Contentful Paint (LCP) and how to improve it
Not every type of rendered content can trigger this metric. At the time of writing this article, the types of elements are: <img>...
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