From ec05783507768c30cb61b6791bdf64f6b22f32f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 22 Jul 2020 10:38:52 -0400 Subject: [PATCH] feat: remove js-enabled.css --- public/js-enabled.css | 3 --- public/src/app.js | 10 ---------- 2 files changed, 13 deletions(-) delete mode 100644 public/js-enabled.css diff --git a/public/js-enabled.css b/public/js-enabled.css deleted file mode 100644 index 269d7d42ab..0000000000 --- a/public/js-enabled.css +++ /dev/null @@ -1,3 +0,0 @@ -/* - The following stylesheet is only included on pages that can execute javascript -*/ diff --git a/public/src/app.js b/public/src/app.js index fb7f310a94..c06a8c9929 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -38,8 +38,6 @@ app.cacheBuster = null; }); app.load = function () { - app.loadProgressiveStylesheet(); - overrides.overrideTimeago(); var url = ajaxify.start(window.location.pathname.slice(1) + window.location.search + window.location.hash); @@ -751,14 +749,6 @@ app.cacheBuster = null; }); }; - app.loadProgressiveStylesheet = function () { - var linkEl = document.createElement('link'); - linkEl.rel = 'stylesheet'; - linkEl.href = config.relative_path + '/assets/js-enabled.css?' + app.cacheBuster; - - document.head.appendChild(linkEl); - }; - app.showCookieWarning = function () { require(['translator', 'storage'], function (translator, storage) { if (!config.cookies.enabled || !navigator.cookieEnabled) {