From: Tim Düsterhus Date: Thu, 25 Feb 2021 15:50:15 +0000 (+0100) Subject: Preload the woff2 version of FontAwesome X-Git-Tag: 5.4.0_Alpha_1~222^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=08502788010a3bf11b68d351b49b6ead82f93e20;p=GitHub%2FWoltLab%2FWCF.git Preload the woff2 version of FontAwesome --- diff --git a/wcfsetup/install/files/style/icon/icon.scss b/wcfsetup/install/files/style/icon/icon.scss index 84b23015a4..070283ddac 100644 --- a/wcfsetup/install/files/style/icon/icon.scss +++ b/wcfsetup/install/files/style/icon/icon.scss @@ -1,6 +1,12 @@ /* do NOT reference fonts directly, always make use of 'getFont.php' */ @font-face { font-family: "FontAwesome"; + --woltlab-suite-preload: #{preload( + getFont("fontawesome-webfont.woff2", "", "4.7.0"), + $as: "font", + $crossorigin: true, + $type: "font/woff2" + )}; src: url(getFont("fontawesome-webfont.eot", "", "4.7.0")); src: url(getFont("fontawesome-webfont.eot", "", "4.7.0") + "#iefix") format("embedded-opentype"), url(getFont("fontawesome-webfont.woff2", "", "4.7.0")) format("woff2"),