by billti · 6y ago · 0 comments
<link rel="icon" href="data:image/gif;base64,R0lGODlhEAAQAAAAACwAAAAAAQABAAACASgAOw==">
Putting that small line in my HEAD tag gets rid of those annoying extra requests, and results in no favicon (it's just a totally transparent image).If interested in the format, I put a gist up at https://gist.github.com/billti/81d4b601c9022ba3655a3a03873ca... with the small node.js script I wrote to generate various examples. (You can see more examples and links in the comments in the top if interested).
So far, this is what I've come up with -
<link rel="icon" href="data:image/svg+xml,%3csvg%3e %3c/svg%3e">While researching, I've found some fun things people have been doing using text and emojis in SVGs [0]
[0] https://lean8086.com/articles/using-an-emoji-as-favicon-with... [1] https://css-tricks.com/emojis-as-favicons/
They come in handy more often than you’d think.
https://twitter.com/billticehurst/status/1288721150780964866...
<link rel="icon" href="data:,">There should be a browser directive for this. It feels like we should be able to tell the browser no.
Of course you can now have a different favicon for every page, or update it dynamically, so that semantic argument is no longer as strong.