-
Notifications
You must be signed in to change notification settings - Fork 12.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any need for the 6 different apple-touch icons when just one will work? #1367
Comments
This is explained here: http://mathiasbynens.be/notes/touch-icons |
"The downside is that these devices will load the large high-quality image, while a much smaller file would have worked just as well." |
Neil, Hope it helps! |
Ok, thanks. But I still don't agree that creating multiple specific graphics to target each individual device is the right approach (not a very 'responsive' approach). Creating one image is still faster/easier and cleaner, and I don't see an issue with delivering it to older devices when it's not adding any weight to the page load (it's only being loaded after the 'request' of adding to the home screen) and we're only talking about a couple of k in the difference between these images. |
If it's only downloaded when added to the home screen, then I can see your point. Personally, I go the single-icon route too. |
+1 for a single-icon (and a favicon.ico) no html links approach. @mathiasbynens thank you for the thorough explanation of the touch icons. I had to laugh when I read the summary though. Not because of your suggestions but because of why I hate proprietary BS. Let me summarize your summary.
|
Just to recap, there are two main reasons why having many different touch icons is the best solution:
That said, I’m lazy and I use the single-icon solution as well. But that doesn’t mean it should be the go-to solution IMHO. @ryanswedal :D |
If the HTML links are included on the page, does anyone know if they get called on page load? If so, that's an even bigger argument for the one icon approach... and for not including the HTML link. |
Back when I researched this, IIRC my tests confirmed that the touch icons weren’t requested on page load, not even with the |
Good to know. Thanks! |
Yeah, +1 for the single icon approach. The touch icons are not self documenting, so having 6 in the root without the ability to document a tool to sync them up is messy and maintenance heavy. |
I agree with the problem of maintainability if you have all icons in the root. I don't really see a good solution but to add the But I don't think we should bloat the index.html's markup with these tags at the moment. Mobile Boilerplate does this tho. |
As of iOS 7, the recommended touch icon size for Retina-display iPhones went up from 114 × 114 pixels to 120 × 120 pixels. My post has been updated to reflect that. |
Can we find a solution here? Do we want to leave it as is or move to the one icon approach? |
Well my vote would certainly be for the one icon approach On Wednesday, July 24, 2013, Hans Christian Reinl wrote:
Neil Creagh Sent from mobile: 087 2174891 |
The less, the simpler, the better. If just one is enough and works why wouldn't we go with it? |
+1 for one! |
I also would like to take a simple and responsive way, but for icons there used to be one exception: icons in different scale may require redesign to make it clear at that size. If you have a complex icon of, say 120x120 and want to use it in 32x32, it may become unrecognizable. Scale a small icon to a much larger one is not a problem with vector format, but designer may want to add more details. http://www.behance.net/gallery/Google-Visual-Assets-Guidelines-Part-1/9028077#module-67936509 Scroll down several pages from link above to see icons in 32x32 and 16x16 ... maybe it's not so close to this topic, but I think that's what should be considered when talking about icons in various size. |
IMO in most situations one icon is sufficient. Providing a single large H5BP icon with a note in the docs about creating smaller icons to optimize for clarity and file size would be a good fix. That said, H5BP is semi-opinionated so whatever is considered the "correct" method, regardless of simplicity, should be in the repo. |
This commit removes five Apple Touch Icons with different sizes for the same icon and adds a new icon `apple-touch-icon-precomposed.png` with a resolution of 152x152px. Apart from that it adds documentation on how to add more icons if you need them within your project. Using only one Apple Touch Icon saves time and is enough in most cases. Closes #1367. Closes #1425.
I've made a Pull Request which removes five of the six Apple Touch Icons in #1425. Please keep the main discussion within this issue. |
+1 |
2 similar comments
👍 |
+1 |
Is it okay if I admit I never knew why there were six in the first place and I'm happy that there will be one so I won't feel like I'm lazy not knowing the "why?" |
👍 |
|
Please see h5bp/html5-boilerplate#1367 and h5bp/html5-boilerplate@71ca9fb for more information.
I've been running for a while with just the single image. One downside is that many mobile browsers will request the other files. There is no need to reference them with a link tag in the HTML but I've gone back to including root directory files for all of the sizes in normal and precomposed just to avoid having my log full of 404 errors for those requests. |
This commit removes five Apple Touch Icons with different sizes for the same icon and adds a new icon `apple-touch-icon-precomposed.png` with a resolution of 152×152px. Apart from that it adds documentation on how to add more icons if you need them within your project. Using only one Apple Touch Icon saves time and is enough in most cases. Closes h5bp#1367. Closes h5bp#1425.
Just one apple-touch-icon png, set to 144x144px, will be used on older devices too (automatically scaled down), so I don't see the need for creating 6 different versions.
The text was updated successfully, but these errors were encountered: