w3c / largest-contentful-paint

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

Investigate element removal #41

Closed npm1 closed 3 years ago

npm1 commented 5 years ago

The spec does not handle element removal at all. When content is removed, previous content could become the largest, and a new entry would need to be exposed for such content.

anniesullie commented 4 years ago

Update: we're investigating whether element removal should be in the spec; we found several cases where it has a very negative effect on carousels: https://github.com/anniesullie/LCP_Examples/blob/master/removed_from_dom/README.md

Currently working on gathering a larger data set.

npm1 commented 4 years ago

Ok changed the title as the spec and explainers now roughly cover removal. If we choose to not handle removal then they need to be updated.

npm1 commented 3 years ago

We've decided to allow removed content to remain as valid LCP candidates, so now we need to update the explainer and spec accordingly.