Scalable Vector Graphics (.svg) are plain-text XML documents that describe shapes using mathematical paths (<path>, <circle>, <rect>, <polygon>). When you export an icon or illustration from a desktop vector editor, the exporter prioritizes project re-importability over production web performance:
- 6-Decimal Coordinate Over-Precision: A path command like
M 14.892341,28.104923 C 19.000124,31.999871...wastes dozens of bytes per vertex on sub-pixel fractions that are physically invisible on any screen. - Editor Namespaces & RDF Metadata: Inkscape and Illustrator inject
<metadata>,<sodipodi:namedview>,xmlns:inkscape,data-name, andenable-backgroundattributes that browsers completely ignore. - Redundant Empty Containers & Long HEX Codes: Nested
<g></g>groups left behind after ungrouping layers and 6-character hex strings (#ffffffinstead of#fff) add unnecessary DOM nodes and bytes.