Chrome now supports SVG favicons! https://chromium-review.googlesource.com/c/chromium/src/+/1541185 …
Pro tip: you don’t need any HTML to declare a favicon. Host your SVG file at /favicon.ico and serve it with the correct MIME type (image/svg+xml). https://mathiasbynens.be/notes/rel-shortcut-icon … 
-
-
But how would you handle the fallback for browsers that don't support SVG favicon?

-
If you need a fallback, then definitely use <link rel=icon>. I just won’t be doing that:https://twitter.com/mathias/status/1196820845915705344 …
- 1 more reply
New conversation -
-
-
OK. Personally, I’d avoid it, because you’d need a custom setup for your server (e.g. npx serve doesn’t work out of the box). And working locally with the file (via SVG editors etc.) becomes more complicated.
-
But avoiding one request is indeed a nice benefit.
- 2 more replies
New conversation -
-
-
I anyway generate my favicon and set it during runtime
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
"file extensions don't matter on the web" How exactly does YOUR server determine the MIME type of a file when serving it?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.