w3c / largest-contentful-paint

Specification for the LargestContentfulPaint API
https://w3c.github.io/largest-contentful-paint/
Other
88 stars 16 forks source link

Rebase LCP on top of w3c/paint-timing#100 #121

Closed clelland closed 8 months ago

clelland commented 9 months ago

This eliminates the dependency on the still-incubating ElementTiming spec, by using concepts newly-introduced into Paint Timing.

The concept of LCP-eligibility is also added, to encapsulate the various heuristics used to filter out elements which are not the primary content of the page (though which would still be considered "contentful" for purposes of calculating First Contentful Paint time.)


Preview | Diff

clelland commented 9 months ago

Note that this will fail to compile under bikeshed until w3c/paint-timing#100 lands, due to the new references.