docs/04-quality/02-browser-support-principles.md
We believe that our journalism should be accessible to everyone.
theguardian.com uses responsive design to help us achieve this.
This means every feature of the website needs to consider how it adapts itself to each user's environment.
Practically speaking this means thinking about handful of design factors when designing and building the frontend.
For example,
Viewport dimension (the width and height of the device), resolution and pixel density.
Bandwidth
Interaction type
HTML5 support
In many ways responsive design is just usability, accessibility, and progressive enhancement rephrased.
Cutting the mustard describes a technique that divides web browsers in to two groups - 'modern' and 'core'.
We do this by evaluating the client's capability, like so :
var isModern = function() {
return ('querySelector' in document && 'addEventListener' in window && 'localStorage' in window && 'sessionStorage' in window)
})
The core experience is designed to work on everything, whereas the modern experience is progressively enhanced with JavaScript.
We only serve JavaScript to browsers that cut the mustard.
For browsers that fail that test, we still expect the content to render, but they will not get enhancements.
This ensures a graceful experience when viewing with a less capable device, or simply when, for whatever reason, the JavaScript fails we can turn our escalator into stairs.
Take a look at these screenshots for comparison:
Based on these principles and usage stats we have produced a browser usage table.
Here are the browsers and devices we currently regularly test on:
The share of traffic from IE8 is around 5%.
We will serve a specific style sheet and JavaScript to offer some enhanced functionality (Eg. stylesheets, adverts) whilst it continues to have significant usage.