Strip .no-css, .csstransitions and .cssanimations

This commit is contained in:
djmaze 2020-07-22 08:17:02 +02:00
parent e01e484259
commit 90cec2171a
13 changed files with 25 additions and 76 deletions

View file

@ -47,20 +47,6 @@ const useJsNextBundle = (function() {
})();
/* eslint-enable */
/**
* @param {string} id
* @param {string} name
* @returns {string}
*/
function getComputedStyle(id, name) {
const element = window.document.getElementById(id);
return element && element.currentStyle
? element.currentStyle[name]
: window.getComputedStyle
? window.getComputedStyle(element, null).getPropertyValue(name)
: null;
}
/**
* @param {string} styles
* @returns {void}
@ -302,9 +288,6 @@ window.__runBoot = function() {
}
const root = window.document.documentElement;
if ('none' !== getComputedStyle('rl-check', 'display')) {
root.className += ' no-css';
}
if (useJsNextBundle) {
root.className += ' js-next';