5 ms·
Some websites even do this for the favicon.
by AlienRobot 1mo ago
Some websites even do this for the favicon.
- decimalenough 1mo agoThe favicon spec is a mess these days. The OG was 16x16 pixels, but now you're supposed to provide a whole slew of resolutions up to 192x192 and you can do SVG as well. And browsers have no consistency in how they pick the one to actually display. https://en.wikipedia.org/wiki/Favicon#How_to_use https://en.wikipedia.org/wiki/Favicon#How_to_use
- notenlish 1mo agoWhy not use https://realfavicongenerator.net/ https://realfavicongenerator.net/
- notRobot 1mo agoIn my experience it works essentially everywhere to have a single png that's ~256*256px as a linked favicon, perhaps with a single .ico fallback.
- reddalo 1mo ago> browsers have no consistency in how they pick the one to actually display The same Firefox on macOS shows different favicons depending on if I'm using it on the laptop screen or an external one (probably because of different pixel densities). It's crazy!
- hutattedonmyarm 1mo agoUsing different icons for different pixel densities seem reasonable, especially with the density being a supported descriptor on which icon to use: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/img#srcset https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...