4 ms·
I don't see much point providing anything but the first. <link rel="icon" href="/favicon.ico" /> I'd remove that slash too. HTML isn't XML. If there are any
by recursive 6y ago
I don't see much point providing anything but the first.
<link rel="icon" href="/favicon.ico" />
I'd remove that slash too. HTML isn't XML. If there are any user agents that don't support this, I'd consider that their problem.
Unless branding is like super important, I pretty much refuse to go any farther than this. I see no reason why it can't just be this simple.
- iskin 6y agoSmall 48×48 icon in favicon.ico will not work on browser recent websites page (which is pretty popular feature)
- recursive 6y agoAre you talking about browser history? Because it seems to work just fine. If you're talking about something else, it can't be that popular. I've never heard of it, and a search is not very illuminating either.
- pta2002 6y agoIt's the "Recent Sites" list that appears e.g. when you open up chrome or a new firefox tab by default.
- eyelidlessness 6y agoOr literally just focus the URL bar in mobile Safari, and I suspect most other mobile browsers are similar.
- saurik 6y agoOne of the few reasons got the .ico file format to exist is that you can put multiple icon sizes in it, so just include some larger variants.
- gog 6y agoI omit the favicon part from the HTML completely, the browsers still request the favicon.ico even when it's not specified.