浏览代码

Use font-display swap for font registration

Jeremy Yip 3 年之前
父节点
当前提交
4d2dbb90c6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      blockbase/functions.php

+ 2 - 2
blockbase/functions.php

@@ -211,14 +211,14 @@ function blockbase_register_google_fonts() {
 					'font-family'  => $font_family,
 					'font-weight'  => '100 900',
 					'font-style'   => 'normal',
-					'font-display' => 'fallback',
+					'font-display' => 'swap',
 					'provider'     => 'blockbase-google-fonts',
 				),
 				array(
 					'font-family'  => $font_family,
 					'font-weight'  => '100 900',
 					'font-style'   => 'italic',
-					'font-display' => 'fallback',
+					'font-display' => 'swap',
 					'provider'     => 'blockbase-google-fonts',
 				),
 			)