Re:Is WebP really better than JPEG?
by pseudosavant on Tuesday June 23, 2020 @04:40PM
(#23619935)
That is really cool. I had never thought about (ab)using SVG in that way.
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.
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.
Re:Is WebP really better than JPEG?
by cmroanirgo on Tuesday June 23, 2020 @05:51PM
(#23620807)
Great idea, I love 'thinking outside the box' solutions, but doesn't seem to work on Firefox mobile. (Perhaps it's just me.)
https://github.com/leni536/trans_jpg