From: Jannis Grimm Date: Thu, 16 Jan 2020 16:47:00 +0000 (+0100) Subject: Add &display=swap to Google Font request X-Git-Tag: 5.2.2~21^2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f869569107955803acf4625daab2f4e080f00f80;p=GitHub%2FWoltLab%2FWCF.git Add &display=swap to Google Font request This requests Google Fonts to deliver fonts with the `font-display: swap;` CSS option, reducing time until meaningful display epecially on slow connections. Including this option is suggested by default now from Google Fonts. --- diff --git a/com.woltlab.wcf/templates/headInclude.tpl b/com.woltlab.wcf/templates/headInclude.tpl index aaf222d949..f1b590c1b0 100644 --- a/com.woltlab.wcf/templates/headInclude.tpl +++ b/com.woltlab.wcf/templates/headInclude.tpl @@ -7,7 +7,7 @@ {if $__wcf->getStyleHandler()->getStyle()->getVariable('useGoogleFont')} - + {/if} {@$__wcf->getStyleHandler()->getStylesheet()} {event name='stylesheets'}