3 ms·
Ouch. We have come to the point where rendering a favicon requires a full web browser rendering engine.
by gardaani 5y ago
Ouch. We have come to the point where rendering a favicon requires a full web browser rendering engine.
- spicybright 5y agoI can't help but think this is a huge step backwards.
- chrismorgan 5y agoWhatever for? It’s a natural consequence of composition of useful elements. It may lead to functionality that you might not design into such a thing if you were making a whole stack from scratch, but the fact that it all works like this is, given HTML and SVG being what they are, categorically a good thing, and is, more generally and subjectively, at least not a bad thing. 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.)
- spicybright 5y agoI 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.