Browserconfig.xml in Internet Explorer 11
30th December 2013Just some days ago a friend wrote to me about a 404 request in Internet Explorer 11 when he was pinning a app to the start screen on Windows 8.1. The app was built with App Ground…
In IE 10 on Windows 8 App Ground did handle pinning using the “msapplication” meta tags. See this.
That was how I dealt with it in App Ground until I looked into this 404 request, When clicking “pin site” in Windows 8.1 the meta tags was used, but at the same time IE sent a request after browserconfig.xml
. I search for it and found a issue over at HTML5boilerplates repo. The browserconfig.xml is a replacement for the meta tags, it’s not backwards compatible… The browserconfig.xml would save bandwidth for the user, because no meta tags is required(if browserconfig.xml is not located in your root you will still need a metatag) and its only loaded when a user actually pins a site.
For best result you would need four different images, that means four meta tags in IE 10(App Ground was just having one) but still none in IE 11. I decided to drop support for pinned sites in IE 10 and only support IE 11. Now App Ground is using all four images and saves some bandwidth.
Example use of browserconfig.xml can be seen in App Ground 1.2.1.
All my sources:
- IEblog: High Quality Visuals for Pinned Sites in Windows 8
- HTML5boilerplate: Add /browserconfig.xml and tile images
- MSDN: Creating custom tiles for IE11 websites
- Stackoverflow: Windows 8 prepere site for pinning
- MSDN: Pinned Sites
PS App Ground is not meant to have great browser support… DS