3 ms·
How do you resolve favicons? Browsers are very resilient at finding favicons. Websites can use meta refreshes, variants on <link rel="..."> tags, domain.com/fav
by shurane 15y ago
How do you resolve favicons? Browsers are very resilient at finding favicons. Websites can use meta refreshes, variants on <link rel="..."> tags, domain.com/favicon.{ico,png}, gzipped images, and inserting icon elements with javascript. You could also use parent domains if you don't have a favicon for a subdomain.
Writing your own favicon-getter is by contrast... kind of annoying.
- simonbrown 15y agoIt's using http://getfavicon.appspot.com/ http://getfavicon.appspot.com/. I assume (by the names of the creators) that it wasn't created specifically for this. It seems when the URL of a post has a hash at the end, the default icon query string isn't used. http://i.imgur.com/pBs2T.png http://i.imgur.com/pBs2T.png
- mikeklaas 15y agoFWIW, you can use google's favicon "service". It isn't official, but as long as you don't hit it too hard, I doubt they mind terribly: http://www.google.com/s2/favicons?domain=techcrunch.com http://www.google.com/s2/favicons?domain=techcrunch.com EDIT: I should point out that the accuracy is poor compared to most browsers.