Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

The 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



> 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!


Using 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/...



In 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: