The complexity of downloading favicons
simplecto.com
simplecto.com
18: sometimes favicons are not square
19: sometimes favicons have transparent pixels (GIF) or an alpha channel (PNG)
May I add those with credit to you?
I use this tool: https://realfavicongenerator.net/
Rather than make everything simple it makes everything easy.
Thanks to the Sam for immersing in that subject so others can reap the benefit.
EDIT: Found it! https://www.google.com/s2/favicons?domain=
(simply add a domain name after '=' and it will return the website favicon)
"<img src="https://www.google.com/s2/favicons?domain=news.ycombinator.c... />"
I don't know if there's a good solution to this. It's unfeasible to require developers to provide two icons, particularly in places that are mothballed. Should browsers always render favicons against a light/white background?
That's so funny, I've never seen one moving. Do browsers just convert the first frame into a static icon on the fly when they're downloaded or have I just never noticed one moving?
http://www.p01.org/defender_of_the_favicon/
(Press N to start, the arrow keys to move.)
Some issues we have seen:
- Pages that say they are one encoding but are actually another
- Redirects to other sites
- invalid contents or malformed content. How hard should we try to interpret what they meant? For example, an html page that looks like a valid CSV.
- Page too long or extremely slow
- Invalid certs
I wrote favicon-getter just as a means to populate an icon next to a list of links in another project. Hence, all the references to Yak-shaving.
In the end I just assumed that I would "almost" never see a tiff used as favicon and move on.
The consistent problem for me is that cloudflare doesnt like (some/certain/it seems random) ip ranges or user agents and pops up a captcha immediately