From 567fd466a139bdd5fc182bb60a5906993de28f91 Mon Sep 17 00:00:00 2001 From: byronhe Date: Thu, 6 Aug 2020 00:44:19 +0800 Subject: [PATCH] feat(scss): font-display: swap (#267) --- assets/sass/_iconfont.scss | 1 + assets/sass/_variables.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/assets/sass/_iconfont.scss b/assets/sass/_iconfont.scss index f4fa791..e56b0b6 100644 --- a/assets/sass/_iconfont.scss +++ b/assets/sass/_iconfont.scss @@ -10,6 +10,7 @@ url('../fonts/iconfont/iconfont.woff') format('woff'), url('../fonts/iconfont/iconfont.ttf') format('truetype'), url('../fonts/iconfont/iconfont.svg#iconfont') format('svg'); + font-display: swap; } %base-iconfont { diff --git a/assets/sass/_variables.scss b/assets/sass/_variables.scss index 8e1553b..ae97a8f 100644 --- a/assets/sass/_variables.scss +++ b/assets/sass/_variables.scss @@ -89,6 +89,7 @@ $header-padding: 20px 20px !default; url('../fonts/chancery/apple-chancery-webfont.svg#apple-chancery') format('svg'); font-weight: lighter; font-style: normal; + font-display: swap; } // Font size of the logo.