the User-centric Metrics "Largest contentful paint (LCP)" is not correct
See original GitHub issueI 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:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top 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 >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
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
Hi DongYu,
We are about to start working on this. I’ll let you know once the PR is created.
Thanks, Alberto