未验证 提交 9e4310b6 编写于 作者: A An 提交者: GitHub

add font-display: swap; to improve font loading (#1027)

上级 2f5de7b6
......@@ -5,6 +5,7 @@
@font-face {
font-family: $font-local;
font-style: normal;
font-display: swap;
font-weight: 300;
src: local(''),
url('#{$assets-base}/fonts/inter-v7-latin-ext_latin-300.woff2') format('woff2'),
......@@ -14,6 +15,7 @@
@font-face {
font-family: $font-local;
font-style: normal;
font-display: swap;
font-weight: 400;
src: local(''),
url('#{$assets-base}/fonts/inter-v7-latin-ext_latin-regular.woff2') format('woff2'),
......@@ -23,6 +25,7 @@
@font-face {
font-family: $font-local;
font-style: normal;
font-display: swap;
font-weight: 500;
src: local(''),
url('#{$assets-base}/fonts/inter-v7-latin-ext_latin-500.woff2') format('woff2'),
......@@ -32,6 +35,7 @@
@font-face {
font-family: $font-local;
font-style: normal;
font-display: swap;
font-weight: 600;
src: local(''),
url('#{$assets-base}/fonts/inter-v7-latin-ext_latin-600.woff2') format('woff2'),
......@@ -41,6 +45,7 @@
@font-face {
font-family: $font-local;
font-style: normal;
font-display: swap;
font-weight: 700;
src: local(''),
url('#{$assets-base}/fonts/inter-v7-latin-ext_latin-700.woff2') format('woff2'),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册