diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-04-30 23:17:53 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-05-02 14:28:38 +0100 |
commit | 536fdcd39d0d6bd76954d6baa672a3b7f266d155 (patch) | |
tree | 49f8e5a08250341face408d7e54cb1a87d4cb129 /web/js/geolocation.js | |
parent | 36c382ed12ba6da3164e256dd3e4ae97fa7235ea (diff) |
Fix front page critical CSS loading in IE.
The easy thing first - IE appears to 'stack' :before entries, so if a
stylesheet is loaded multiple times (e.g. due to critical CSS loading
on the front page), a font-size of 2.5em gets multipled. Switching to
rems fixes this.
The preload polyfill in IE8/9 loads the base stylesheet as if it were
after the layout stylesheet, which breaks the navigation display. The
polyfill has a new version which is somewhat simplified, updating the
existing <link> rather than creating a new one, so we upgrade to that
plus a PR to prevent browser hanging.
However, in IE8 this now incorrectly uses the print styles on screen,
meaning the navigation and footer disappear. So use an IE conditional
comment to just cut IE8 out entirely. This means we can also cut down
the polyfill somewhat.
Diffstat (limited to 'web/js/geolocation.js')
0 files changed, 0 insertions, 0 deletions