Re:Show HN: Emojicons
by spicybright on Tuesday April 27, 2021 @02:09PM
(#26959374)
I like the idea in principal, but my main qualm is the complexity overhead of forcing the client to render something that is ultimately just a small image.
I personally don't see a good reason not to render server side and save page load time, batteries, cpu cycles, etc.
It's definitely a natural consequence of constant improvement of the tech, but I don't like each step piles on technical bloat.
Yes, CPUs and browsers get faster over time, but all those improvements usually lead to more software bloat and cancel each other out. Which is a shame really.
A majority of people in the world use old, non updated phones to access basic websites. Improvements like this can lock people out of portions of the web just because their browser can't handle rendering the favicon.
SVG can include foreign objects, which is decidedly useful in some contexts; in browsers, that includes HTML, because it’s easy.
A favicon is an image, so it should allow all the usual types of images, which includes SVG. No reason to exclude SVG or any SVG features other than scripting.
(“But now a non-browser can’t render the favicon properly!” you may say. By using <foreignObject>, you’re opting into non-standard functionality and shouldn’t expect all SVG renderers to be able to render that part. For completeness, I’ll note that you can provide an alternative representation for engines that don’t support XHTML in SVG with <switch> and requiredExtensions.)