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.

☔️LCP Interesting Cases

See original GitHub issue

Since LCP is a new metric in 6.0 I thought we might want to get ahead of some of the more challenging cases that will end up dramatically affecting scores. Inspired by the results of @connorjclark’s great analysis on score movement for 11ty pages.

Very large image problem

Lighthouse accuracy: Simulated is right and observed is wrong Field accuracy: probably mostly wrong Example URL: https://peterthaleikis.com/ The Problem: LCP is gated on the loading a very, very large image. Observed methods will never wait long enough to see the LCP event generated by the loading of this image and will end up picking the second largest paint as the LCP even instead. Simulated method doesn’t care about waiting and just correctly says that loading that image will take 3 minutes, so LCP is 3 minutes out. This is extra problematic in field use cases. Because input stops LCP computation most RUM metrics will likely pick the second largest paint as LCP as well, so all data will point to Lighthouse being wrong when it’s really the only thing correctly identifying the problem.

(renderTime is ambiguously defined in the LCP spec but in the closely related element timing spec it’s referred to as the equivalent of the next paint after the onload event would have fired)

image

Many images before LCP

Lighthouse accuracy: Observed is right and simulated is wrong Field accuracy: probably all correct Example URL: https://templates.netlify.com/ The Problem: Lantern-specific issue that assumes all the images before LCP were necessary when only the largest onscreen one was, this is probably worth addressing before 6.0 final as it takes otherwise very performant sites and brings them down to an LCP of 0

Observed: image

Simulated: image

Lantern Trace: image

WAI

Lots of cases in that doc are great signs of Lighthouse catching bad perf that we were passing before, so just wanted to recognize the good cases too 😃

https://2018.nejsconf.com/ for example has a very large background image that pushes out LCP even though all other metrics are fast.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
patrickhulcecommented, Apr 1, 2020

We think this case should be reported as ‘unknown LCP’.

Agreed. “unknown”, “did not finish”, anything of the sort that doesn’t lead someone to incorrectly count the first paint and think LCP was 2s.

0reactions
paulirishcommented, Apr 28, 2020

Lighthouse has no remaining AIs here. CSM will carry the torch on handling these.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ruger Compact Pistol (LCP) Case - Amazon.com
This pistol rug has a black 600D cover with white Ruger logo, a tricot lining with 5mm foam padding and a zipper pull....
Read more >
lcp (@lynjcp) / Twitter
There are around 10,300 new pancreatic cancer cases in the UK every year. As with all cancers early detection is key for more...
Read more >
Liz Uy | Velvet street style, Fashion week street ... - Pinterest
Filipina Stylist Liz Uy's Shopping Guide to Manila. Liz Uy--the rising star of international style--breaks down the most transportive local shopping haunts in ......
Read more >
Rizal Azis di LinkedIn: #people #lightchats #taxidriver ...
You're right... many of the Grab drivers I've met have very interesting stories ... Hair Transplant Doctor | ISHRS Member | LCP Certified...
Read more >
Anyone due to start chemo April 14?? - Page 10 - 827647
I will take a cool bag with sandwiches, popcorn and some artisan cakes I purchased ... Evening ladies from a very wet Leicestershire☔️....
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