From aca3b05eb7e45927756a09dde5d2972dec67dead Mon Sep 17 00:00:00 2001 From: James Lyne Date: Sat, 12 Dec 2020 19:07:00 +0000 Subject: [PATCH] Preload font and enable swapping --- public/index.html | 2 ++ src/scss/style.scss | 1 + 2 files changed, 3 insertions(+) diff --git a/public/index.html b/public/index.html index 79357ee..a45e8bb 100644 --- a/public/index.html +++ b/public/index.html @@ -2,6 +2,8 @@ + + diff --git a/src/scss/style.scss b/src/scss/style.scss index c7f525e..f379e49 100644 --- a/src/scss/style.scss +++ b/src/scss/style.scss @@ -12,6 +12,7 @@ font-family: 'Raleway'; font-style: normal; font-weight: 400; + font-display: swap; src: local('Raleway'), local('Raleway-Regular'), url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ITw.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }