From 75a124b4490adb7d333046ecafbee209751b2bbe Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 25 Jan 2020 19:58:26 +0100 Subject: [PATCH] remove loadCSS and preload woff2 icon fonts (#9976) loadCSS was used as a polyfill for rel=preload but it seems we only used it on a single CSS file which did not help much. Changed the icon CSS to a blocking load and preload the woff2 variants which does work in modern browsers (Firefox currently needs the network.preload about:config setting but should gain proper support soon). Co-authored-by: zeripath --- public/vendor/VERSIONS | 3 --- public/vendor/librejs.html | 10 --------- public/vendor/plugins/cssrelpreload/LICENSE | 21 ------------------- .../cssrelpreload/cssrelpreload.min.js | 2 -- .../plugins/cssrelpreload/loadCSS.min.js | 2 -- templates/base/head.tmpl | 14 ++++--------- templates/pwa/serviceworker_js.tmpl | 2 -- 7 files changed, 4 insertions(+), 50 deletions(-) delete mode 100644 public/vendor/plugins/cssrelpreload/LICENSE delete mode 100644 public/vendor/plugins/cssrelpreload/cssrelpreload.min.js delete mode 100644 public/vendor/plugins/cssrelpreload/loadCSS.min.js diff --git a/public/vendor/VERSIONS b/public/vendor/VERSIONS index 7593f31491..54280b70e2 100644 --- a/public/vendor/VERSIONS +++ b/public/vendor/VERSIONS @@ -23,9 +23,6 @@ Version: 2.1.10 File(s): /vendor/plugins/emojify/emojify.custom.js Version: 1.1.0 -File(s): /vendor/plugins/cssrelpreload/ -Version: 1.3.1 - File(s): /vendor/plugins/dropzone/dropzone.js Version: 4.2.0 diff --git a/public/vendor/librejs.html b/public/vendor/librejs.html index ddaa8034f8..7d29b35c56 100644 --- a/public/vendor/librejs.html +++ b/public/vendor/librejs.html @@ -60,16 +60,6 @@ Expat emojify-1.1.0.tar.gz - - loadCSS.min.js - Expat - loadCSS-1.3.1.tar.gz - - - cssrelpreload.min.js - Expat - loadCSS-1.3.1.tar.gz - dropzone.js Expat diff --git a/public/vendor/plugins/cssrelpreload/LICENSE b/public/vendor/plugins/cssrelpreload/LICENSE deleted file mode 100644 index 733395b515..0000000000 --- a/public/vendor/plugins/cssrelpreload/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) @scottjehl, 2016 Filament Group - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/public/vendor/plugins/cssrelpreload/cssrelpreload.min.js b/public/vendor/plugins/cssrelpreload/cssrelpreload.min.js deleted file mode 100644 index 1204401b09..0000000000 --- a/public/vendor/plugins/cssrelpreload/cssrelpreload.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! loadCSS rel=preload polyfill. [c]2017 Filament Group, Inc. MIT License */ -!function(a){if(a.loadCSS){var b=loadCSS.relpreload={};if(b.support=function(){try{return a.document.createElement("link").relList.supports("preload")}catch(b){return!1}},b.poly=function(){for(var b=a.document.getElementsByTagName("link"),c=0;c {{end}} - - - - + - + + + {{if .RequireSimpleMDE}} {{end}} @@ -98,8 +97,6 @@ {{if .RequireTribute}} {{end}} - -