-
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
Consider including SVG elements #84
Comments
Related issue (should make sure these APIs behave similarly when tracking similar types of content): w3c/element-timing#56 |
One interesting compication to take into account: SVG elements behave slightly different than SVG images, in that they can load other images. We should make sure that LCP takes that behavior into account, and considers the SVG image including resources it may have downloaded. |
Strong support for this last time we discussed it. Needs someone to pick up the task. |
@yoavweiss, I'd like to resurface this issue for discussion. SVGs are content and IMO shouldn't be disregarded. On sites where SVG is used for the initial viewport, no LCP can be reported. This is true of Chrome Devtools, CrUX and Lighthouse.
How can we go about revisiting SVGs inclusion to LCP evaluation? |
Perhaps we could treat SVG as in image if it is made accessible as an image, like in https://www.deque.com/blog/creating-accessible-svgs/? <svg role=img>
<title>...</title>
</svg> Then we can treat this whole SVG as one big image, as if it was an |
Currently the API only includes
image
inside of SVG. We should include SVG elements as a whole. In order to do this, we'd need to answer some questions:The text was updated successfully, but these errors were encountered: