apple-touch-icon-precomposed.png
The `apple-touch-icon-precomposed.png` is an image file used as an icon when a website is added to the home screen of Apple iOS devices. Unlike the standard `apple-touch-icon.png`, the `precomposed` version instructs iOS *not* to apply its default visual enhancements like rounded corners, drop shadow, or a glossy overlay. It's included via a `<link>` tag in the HTML head and allows web developers full control over the final icon appearance on the home screen.
Purpose and Function
precomposed
version ensures that the icon appears exactly as designed by the web developer.Technical Implementation
<head>
section of an HTML document using a <link>
tag.rel
attribute must be set to apple-touch-icon-precomposed
.href
attribute specifies the path to the icon image file (e.g., /apple-touch-icon-precomposed.png
).<link rel='apple-touch-icon-precomposed' href='/custom-icon.png'>
sizes
attribute to the <link>
tag, e.g., <link rel='apple-touch-icon-precomposed' sizes='180x180' href='/icon-180x180-precomposed.png'>
.Historical Context and Evolution
apple-touch-icon.png
, which iOS would automatically 'glossify' and round.apple-touch-icon-precomposed
relation was added later (around iOS 1.1.3) to give developers control.apple-touch-icon
and apple-touch-icon-precomposed
less pronounced or non-existent visually.Behavior and Design Considerations
apple-touch-icon
or apple-touch-icon-precomposed
relations if specific sizes aren't linked.sizes
attribute ensures optimal display on different devices and screen densities.precomposed
is still a safe practice if you want absolute control over corner rounding and shadows, as iOS may still apply subtle rounding or shadows based on its OS design.Related Topics
Wikipedia
Books
Videos
No videos found