Mobile Safari requires the use of the following incantation for favicons of a higher resolution than the traditional 16x16:
<link rel="shortcut icon" href="old-16x16-favicon.ico" />
<link rel="apple-touch-icon" sizes="158x158" href="my-new-158x158-icon.png" />
However, Firefox requires the use of the HTML5 syntax, e.g.:
<link rel="shortcut icon" href="old-16x16-favicon.ico" />
<link rel="icon" type="image/png" sizes="158x158" href="my-new-158x158-icon.png" />
Now, my expectation is that it should be possible to combine these into a single line, as follows.
<link rel="shortcut icon" href="old-16x16-favicon.ico" />
<link rel="icon apple-touch-icon" type="image/png" sizes="158x158" href="my-new-158x158-icon.png" />
Does anyone know of any problems with this? We all know things are rarely this simple, and I don't have an iOS device to test against, let alone all the other devices out there that have no-doubt copied the Apple syntax.
This solution is very promising. Unfortunately, it does not work.
I have just tried with an iPad Mini, running iOS 7.0.4 and Safari with the following code:
Two notes about this code:
apple-touch-icon-76x76.png
, whatever the HTML code says. So it was necessary to use special names not to be tricked.The results:
Too bad, this solution looks good. Yet, even if this test was successful, a lot more tests should have been performed, since several platforms use the Apple icons. In particular, Android. So even if iOS devices would have been smart enough to handle this trick, some other existing or future devices might fail.