-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add intersectionRect (from element timing) to LCP? #127
Comments
Looking at the algorithm for LCP, it is explicitly taking an https://w3c.github.io/largest-contentful-paint/#potentially-add-a-largestcontentfulpaint-entry |
...meanwhile element timing does not expose I think these entry types should try to be as similar as possible, no? Then you can share a sinlge PerformanceObserver, for example. |
I agree; this would have been really useful in a number of debugging situations. I don't know if this was an oversight in the original design or not, but it would be a useful addition now. |
agree. Moz has an existing feature request for a use case for Michal's third point above, aka "Useful to visualize cases when surprising candidates.." |
Excellent! I'll ask if we can add to the WG meeting schedule, just to confirm this is not intentional for some obscure historical reason. Should be trivial to patch into spec. |
LCP entries expose a
size
but not anintersectionRect
.Is there a specific reason?
Having the full rect is quite useful especially for cases such as:
element
becomesnull
for reportinggetBoundingClientRect()
The text was updated successfully, but these errors were encountered: