Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LCP measurement reported without the LCP DOM element #14908

Open
2 tasks done
thefoxis opened this issue Mar 20, 2023 · 5 comments
Open
2 tasks done

LCP measurement reported without the LCP DOM element #14908

thefoxis opened this issue Mar 20, 2023 · 5 comments

Comments

@thefoxis
Copy link

FAQ

URL

https://www.crunchbase.com/

What happened?

Steps to reproduce

  1. Run a Performance Lighthouse test on https://www.crunchbase.com/ in Chrome Developer Tools.
  2. Observe that LCP measurement is reported without the LCP DOM element being specified.

Screenshots

Screenshot 2023-03-21 at 9 56 58 am

Screenshot 2023-03-21 at 9 56 49 am

What did you expect?

When Largest Contentful Paint measurement is available, the LCP element should always be listed (since the measurement is derived based on finding a specific element).

TL:DR; there should never be a case where there's a measurement and no element specified (or the other way around).

What have you tried?

I've ran numerous tests to confirm it's not a one-off behavior. It happens either persistently (every DevTools test) or intermittently, but in a semi-persistent manner. I was also able to reproduce it in Calibre, see this publicly available test 1:

Screenshot 2023-03-21 at 10 16 13 am

I wasn’t able to reproduce it on PSI (web.dev/measure), perhaps because it runs on newer Lighthouse version (10.0.2), but I'm unable to speculate the reasoning.


How were you running Lighthouse?

Chrome DevTools

Lighthouse Version

Lighthouse 9.6.8

Chrome Version

Version 111.0.5563.64 (Official Build) (arm64)

Node Version

No response

OS

Mac

Relevant log output

No response

Footnotes

  1. You can either look for the Largest Contentful Paint element audit, or filter by LCP-related audits.

@adamraine
Copy link
Member

I was able to reproduce this, but I'm having a hard time debugging because of the "Verify that you are human" screen. It sometimes doesn't believe that I am human (possibly because Lighthouse is controlling Chrome automatically?)

@thefoxis
Copy link
Author

@adamraine I thought the human check might be an issue here, but it's hard to reproduce, I agree. if I test manually an encounter the confirmation screen, then press the press & hold button to confirm, and conduct testing afterwards, i still results in no LCP element, even though I've gone through the human checks 🧐 in that case, I would have thought it'd be resolved?

one workaround I thought of would be to pass a cookie during the test to bypass the human check, but I still think Lighthouse fails in an unexpected way here 😅

@adamraine
Copy link
Member

adamraine commented Mar 21, 2023

We are getting a "No node with given ID found" error when we try and resolve the node. Not entirely clear why this is happening though since Lighthouse should account for nodes being removed during page load. Next step would be to create a minimum repro, this could be an issue with Chrome.

@adamraine adamraine assigned adamraine and unassigned paulirish Mar 21, 2023
@thefoxis
Copy link
Author

hey, are there any updates on this? 🙏🏻

@adamraine
Copy link
Member

I was able to create a repro and filed an upstream bug:

https://bugs.chromium.org/p/chromium/issues/detail?id=1445244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants