Log in

No account? Create an account

Previous Entry | Next Entry

Microsoft Hacks: I love them and hate them

favicon.ico and XMLHttpRequest both rock.  They're these private little ditties that somebody made at Microsoft because it made their app more usable.

But they help everybody else, too (to put it mildly).  So we all adapted their use.

I changed the design of my private blog a few days ago, so today I changed my favicon.ico accordingly.  After changing the icon to a .gif file (with the supporting link tag), then reverting it to .ico (256 color), then to a smaller .ico (16 color) I still could never get IE to display the new favicon.  Oh, and here's today's changes in header.php (the same line, slightly tweaked, over and over and over):

+    <link rel="icon" type="image/gif" href="favicon.gif">

-    <link rel="icon" type="image/gif" href="favicon.gif">
+    <link rel="icon" type="image/ico" href="favicon.ico">

-    <link rel="icon" type="image/ico" href="favicon.ico">
+    <link rel="shortcut icon" href="<?php bloginfo('url'); ?>/favicon.ico" type="image/x-icon" />

With every change I made, FireFox did exactly what I expected.  IE never did.  Still hasn't.  I give up.  Oh, my fingers hurt from Ctrl+F5.


( 2 comments — Leave a comment )
Apr. 30th, 2007 03:08 pm (UTC)
I guess it wouldn't help to suggest Tools > Clear Private Data > for this one, (or, in the case of IE, the 8 steps it requires to do the same thing . . .)
Thanks for the wiki link . . . the step-by-step instructions on antifavcon promise results on "most browsers" . . . ha! I look forward to experiencing Carpal Ctrl+F5 sydrome. Here's what they say . . .:

For optimal browser support, the following rules should be obeyed:

* Include both element types:
link rel="shortcut icon" href="http://example.com/favicon.ico" /
link rel="icon" href="http://example.com/favicon.ico" /
* The link elements must be inside the head element (between head> and /head>) in the HTML.
* For XHTML, the link element must be empty (terminated by /> )
Apr. 30th, 2007 05:35 pm (UTC)
Thanks. My last commit seems to be fine, although favicon caching doesn't seem to work exactly like regular web asset caching. The wikipedia page (from which antifavicon got its info) seems to be accurate, if you have the "shortcut icon" tag, you don't need the "icon" one.

And here I thought you'd reply to my previous trippy post, and not this one!
( 2 comments — Leave a comment )