Skip to content
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

Closed
neilcreagh opened this issue May 30, 2013 · 28 comments
Milestone

Comments

@neilcreagh
Copy link

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.

@mathiasbynens
Copy link
Member

This is explained here: http://mathiasbynens.be/notes/touch-icons

@neilcreagh
Copy link
Author

"The downside is that these devices will load the large high-quality image, while a much smaller file would have worked just as well."
So, only if someone clicks "Add to home screen", then a slightly heavier png will have to load (larger only by a couple of kilobytes) ... this is perfectly acceptable as far as I'm concerned, and far better than creating 6 different sized icons... and especially better if you're including the HTML on the page to load all six.

@jonrandahl
Copy link

Neil,
If you need a simple way to create these icons may I suggest the H5BP Multi-Layer FavIcons repo? I know it's a shameless plug but I used this again today and was finished with all 7 images, including the multi-layered favicon in under 10 minutes.

Hope it helps!

@neilcreagh
Copy link
Author

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.

@necolas
Copy link
Member

necolas commented May 31, 2013

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.

@ryanswedal
Copy link

+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.

  • In order to fully support Android you must use apple's proprietary html tags.
  • If you only care about iOS then you don't need to use apple's proprietary html tags.
  • The “lazy” approach is to do exactly what apple.com does.

@mathiasbynens
Copy link
Member

Just to recap, there are two main reasons why having many different touch icons is the best solution:

  • Performance / limiting data plan usage: avoid loading needlessly large images when adding to the homescreen.
  • Art direction: in my experience, designers generally dislike relying on automatic resizing, and rather provide the icons in the appropriate dimensions themselves.

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

@neilcreagh
Copy link
Author

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.

@mathiasbynens
Copy link
Member

Back when I researched this, IIRC my tests confirmed that the touch icons weren’t requested on page load, not even with the <link>.

@neilcreagh
Copy link
Author

Good to know. Thanks!

@tchalvak
Copy link

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.

@drublic
Copy link
Member

drublic commented May 31, 2013

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 <link> tags (symlinks don't really solve that problem).

But I don't think we should bloat the index.html's markup with these tags at the moment. Mobile Boilerplate does this tho.
Anyway I am pretty sure it is easy to find out how to move the icons to another folder. We even have a short section on this topic in our docs.

@mathiasbynens
Copy link
Member

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.

@drublic
Copy link
Member

drublic commented Jul 24, 2013

Can we find a solution here? Do we want to leave it as is or move to the one icon approach?

@neilcreagh
Copy link
Author

Well my vote would certainly be for the one icon approach

On Wednesday, July 24, 2013, Hans Christian Reinl wrote:

Can we find a solution here? Do we want to leave it as is or move to the
one icon approach?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1367#issuecomment-21507073
.

Neil Creagh

Sent from mobile: 087 2174891

http://www.fuel.ie

@sarukuku
Copy link

The less, the simpler, the better. If just one is enough and works why wouldn't we go with it?

@Volker-E
Copy link

+1 for one!

@shunner
Copy link

shunner commented Jul 30, 2013

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.

@robwierzbowski
Copy link

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.

drublic added a commit that referenced this issue Aug 30, 2013
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.
@drublic
Copy link
Member

drublic commented Aug 30, 2013

I've made a Pull Request which removes five of the six Apple Touch Icons in #1425.
Feedback much appreciated.

Please keep the main discussion within this issue.

@sarukuku
Copy link

+1

2 similar comments
@webhat
Copy link

webhat commented Aug 30, 2013

👍

@neilcreagh
Copy link
Author

+1

@roblarsen
Copy link
Member

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?"

@FagnerMartinsBrack
Copy link
Contributor

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
— Antoine de Saint-Exupery

👍

@robwierzbowski
Copy link

I didn't have time to make it shorter.
— Blaise Pascal
👍

@douglsmith
Copy link

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.

kcmckell pushed a commit to kcmckell/html5-boilerplate that referenced this issue Feb 25, 2014
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.
@mathiasbynens
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests