DEV Community

Discussion on: Benefits of SVG

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

As SVG would be without doubt, pixel-perfect; it is still an XML. So it can be as bloated as a text file (with unnecessary closing tag). So, possible compression, and are there compressed formats for transport?

Also, is SVG the only supported form of vector graphics on the web?

Collapse
 
rhymes profile image
rhymes

Being text you can send a SVG file with whatever compression algorithm you send other text based formats with. Mainly gzip or Brotli I guess. They can also be cached like other resources over HTTP

Don't know about the other question.