Revert "Add &display=swap to Google Font request"
authorAlexander Ebert <ebert@woltlab.com>
Mon, 3 Feb 2020 19:01:32 +0000 (20:01 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 3 Feb 2020 19:02:01 +0000 (20:02 +0100)
This reverts commit f869569107955803acf4625daab2f4e080f00f80.

The `font-display: swap` behaves quite different from the previous approach and causes a FOUT even on fast connections.
Changing the default behavior in a bugfix release doesn't feel right at this time, we should revisit this with 5.3.

com.woltlab.wcf/templates/headInclude.tpl

index aa41a08c0ca30bb19bcb97cac8e62f39e9cccebe..f822ef17b891a56389bc4850b2b4b073583ecf6e 100644 (file)
@@ -7,7 +7,7 @@
 
 <!-- Stylesheets -->
 {if $__wcf->getStyleHandler()->getStyle()->getVariable('useGoogleFont')}
-       <link href='//fonts.googleapis.com/css?family={$__wcf->getStyleHandler()->getStyle()->getVariable('wcfFontFamilyGoogle')|urlencode}:400,300,600&amp;display=swap' rel='stylesheet' type='text/css'>
+       <link href='//fonts.googleapis.com/css?family={$__wcf->getStyleHandler()->getStyle()->getVariable('wcfFontFamilyGoogle')|urlencode}:400,300,600' rel='stylesheet' type='text/css'>
 {/if}
 {@$__wcf->getStyleHandler()->getStylesheet()}
 {event name='stylesheets'}