Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create browser support documentation
Following the investigation in Whitehall IE 11 usage summarise the findings in documentation such that future investigation is not needed. Co-Authored-By: Ollie Treend <ollie.treend@digital.cabinet-office.gov.uk>
- Loading branch information
1 parent
1143f33
commit fdc27a3
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Whitehall browser support | ||
|
||
Whitehall browser support follows the guidance provided in the [GOV.UK Service Manual](https://www.gov.uk/service-manual/technology/designing-for-different-browsers-and-devices#browsers-to-test-in-from-june-2022). | ||
## Internet Explorer 11 support | ||
|
||
Whitehall's support of Internet Explorer 11 does not go beyond the functionality that is offered through progressive enhancement. JavaScript is not required to be compatible with the browser but should not cause the page to break or become non-functional. | ||
|
||
If a module uses features such as `fetch`, the presence of these features should be checked in the initialisation method before any changes are made to the DOM. | ||
|
||
## Usage of ES6 (2015) syntax | ||
|
||
To enable the use of ES6 syntax such as arrow functions Whitehall's build process is in the process of being updated. Upon completion of this work, JavaScript will be entirely disabled in Internet Explorer 11 through the use of modules. Only following this can variable declarations such as `let` and `const` be used. | ||
|
||
## Background for the level of Internet Explorer 11 support provided | ||
|
||
In January 2023 Whitehall's support for IE 11 was investigated. Usage was found to be significantly below the 2% cut off defined in the GOV.UK Service Manual. The subject was discussed with the broader frontend community and a decision was made to drop support for Internet Explorer 11. Beginning from the next major version, v5, GOV.UK Frontend will drop IE11 support in their JavaScript, leaving IE11 users with the JavaScript free versions of the pages only. |