Re:Is WebP really better than JPEG?
by coopsmgoops on Tuesday June 23, 2020 @06:58PM
(#23621439)
Wouldn't it probably be one request per icon instead of just one request for a while font?
Not necessarily. You can have a single SVG file with multiple 'defs' that you can reference around the page, or just embed the SVG code in the HTML itself (via a templating language) if you're not using too many.
SVG is such an underappreciated technology that is in every browser. Why do icon fonts exist when you could just use SVGs just like you do PNGs and JPEGs? You can even inline them in your HTML so there isn't an additional HTTP request if you want.