diff options
author | silverwind <me@silverwind.io> | 2020-01-25 19:58:26 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2020-01-25 20:58:26 +0200 |
commit | 75a124b4490adb7d333046ecafbee209751b2bbe (patch) | |
tree | 8c749302760d2400f3adb58a36630761a7500bea /templates/pwa | |
parent | 15af6bec601b13dfb3f4ee469446d196a04cbcd1 (diff) | |
download | gitea-75a124b4490adb7d333046ecafbee209751b2bbe.tar.gz gitea-75a124b4490adb7d333046ecafbee209751b2bbe.zip |
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 <art27@cantab.net>
Diffstat (limited to 'templates/pwa')
-rw-r--r-- | templates/pwa/serviceworker_js.tmpl | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/templates/pwa/serviceworker_js.tmpl b/templates/pwa/serviceworker_js.tmpl index 096628f2f0..72edf232bc 100644 --- a/templates/pwa/serviceworker_js.tmpl +++ b/templates/pwa/serviceworker_js.tmpl @@ -9,8 +9,6 @@ var urlsToCache = [ '{{StaticUrlPrefix}}/vendor/plugins/clipboard/clipboard.min.js', '{{StaticUrlPrefix}}/vendor/plugins/codemirror/addon/mode/loadmode.js', '{{StaticUrlPrefix}}/vendor/plugins/codemirror/mode/meta.js', - '{{StaticUrlPrefix}}/vendor/plugins/cssrelpreload/cssrelpreload.min.js', - '{{StaticUrlPrefix}}/vendor/plugins/cssrelpreload/loadCSS.min.js', '{{StaticUrlPrefix}}/vendor/plugins/dropzone/dropzone.js', '{{StaticUrlPrefix}}/vendor/plugins/emojify/emojify.custom.js', '{{StaticUrlPrefix}}/vendor/plugins/highlight/highlight.pack.js', |