The HEAD of a HTML document is a really interesting thing. Every time I start a new project I have to make a new HTML template because my thinking on what to stick in the HEAD changes. Here’s my current thing, complete with comments. It’s largely derived from one of the MDL templates.
Icon-related stuff is a shit show of vendor-specific meta tags. C’mon guys, get it together. If you’re the type of person that likes to make five different icon sizes covering every apple device so your penny-sized thumbnail image looks pixel perfect, give strong consideration to not being that type of person. It’s the size of a penny.
<!-- Add to homescreen for Chrome on Android 192x192 --> <metaname="mobile-web-app-capable"content="yes"> <linkrel="icon"sizes="192x192"href="img/chrome-touch-icon-192x192.png">
<!-- Add to homescreen for Safari on iOS 152x152 --> <metaname="apple-mobile-web-app-capable"content="yes"> <metaname="apple-mobile-web-app-status-bar-style"content="black"> <metaname="apple-mobile-web-app-title"content="Super Awesome App"> <linkrel="apple-touch-icon-precomposed"href="img/apple-touch-icon-precomposed.png">
<!-- Tile icon for Windows (144x144 + tile color) --> <metaname="msapplication-TileImage"content="img/ms-touch-icon-144x144-precomposed.png"> <metaname="msapplication-TileColor"content="#3372DF">
<!-- Font Farms and CSS --> <linkhref="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700"rel="stylesheet"> <linkrel="stylesheet"href="css/main.css?foo=r4ndomnumb3r5">