What elements are considered?
As currently specified in the Largest Contentful Paint API, the types of elements considered for Largest Contentful Paint are:
- <img> elements (the first frame presentation time is used for animated content such as GIFs or animated PNGs)
- <image> elements inside an <svg> element
- <video> elements (the poster image load time or first frame presentation time for videos is used—whichever is earlier)
- An element with a background image loaded using the url() function, (as opposed to a CSS gradient)
- Block-level elements containing text nodes or other inline-level text element children.
--
You received this message because you are subscribed to the Google Groups "web-vitals-feedback" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web-vitals-feed...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web-vitals-feedback/a67a8c81-4f8d-4c14-9620-e1bbbb720822n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web-vitals-feedback/CAC6keeJ-kFyBex4sHMW2LUPu_e8aaNiqDatuy16oSfZE-qpmNA%40mail.gmail.com.
One follow-up question though -
Why did we decide to go with img / videos / say, "block-level elements containing text nodes"
Note that restricting the elements to this limited set was intentional in order to keep things simple in the beginning. Additional elements (like the full <svg> support) may be added in the future as more research is conducted.