Closed benlancaster closed 11 years ago
I can't remember all the details (I stopped thinking IE6/7 about a year ago), but I've always included two META
tags:
<link href='/lib/favicon.ico' rel='shortcut icon' />
<link href='/lib/favicon.ico' rel='icon' type='image/ico' />
More reading: Stack Overflow: favicon not working in IE
Yeah, I've tried every combination you can think of! I've never spent so long trying to sort out a favicon!
I'm going to see if I can work out which bit of webshims is causing it (and hopefully fix it too) tomorrow.
@benlancaster
I couldn't reproduce your bug. My first guess was the stylesheet loading. Try to load webhshims without styles:
$.webshims.setOptions('loadStyles', false);
$.webshims.polyfill('forms');
Yeah I wondered whether it was something manipulating the head
that caused it - disabling styles does indeed seem to have sorted it. Thanks!
With the following markup, IE 7 and 8 ignore the favicon.ico declaration and falls back to the default path of "/favicon.ico":
With a clean cache and history on IE, it doesn't even make an http request for
static/my-favicon.ico
but falls back to/favicon.ico
instead. Removing$.webshims.polyfill('forms');
loads the custom favicon as expected.