element-timing
element-timing copied to clipboard
Should SVG be supported?
Currently we only support image elements inside SVG, but SVG can have other things. It would be good to think about whether we need to provide more support for SVG. To provide support we'd need to know at least:
- How to compute the intrinsic size of the SVG? Not sure if this is well-defined for SVGs, as I don't think we could just use their declared size.
- What timestamp(s) to expose. Is render time after load still good enough here?
Yes, <svg> elements should be supported
They’re visual elements and may well be the true LCP element e.g. where a chart is rendered via SVG