Live data from Hacker News

The complexity of downloading favicons

simplecto.com

1–10 of 39 posts

Re: The complexity of downloading favicons

#6

16: Sometimes it is an animated gif. 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?

I've seen some moving favicons. Even JavaScript that could animate depending on what you did on the site.

Re: The complexity of downloading favicons

#7

16: Sometimes it is an animated gif. 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?

You can use an animated png too! A fun edge I found back in the day was apng allows you to have a static frame for viewers that don't understand apngs. Firefox understood apng, but if you bookmarked the page it would show the first frame of the animation rather than the static frame. The bug I opened for that is now 10 years old. :)

Re: The complexity of downloading favicons

#8
I remember having similar issues a few years ago, I think I ended up using a google service to capture favicons (can't seem to find it anymore)

EDIT: Found it! https://www.google.com/s2/favicons?domain=

(simply add a domain name after '=' and it will return the website favicon)

Re: The complexity of downloading favicons

#10
post #9

17: sometimes there are multiple sizes, according to the spec ( https://html.spec.whatwg.org/multipage/links.html#rel-icon ) 18: sometimes favicons are not square 19: sometimes favicons have transparent pixels (GIF) or an alpha channel (PNG)

Good ones! I forgot about the transparent pixels.

May I add those with credit to you?

Post reply on HN