From e4c062890b077898b1a637299c4d068cfa79ea3c Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Wed, 9 Oct 2024 17:05:20 +0200 Subject: [PATCH] Switch to font-display: fallback to reduce flickering --- assets/_fonts.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/_fonts.scss b/assets/_fonts.scss index 62d3d18..da83660 100644 --- a/assets/_fonts.scss +++ b/assets/_fonts.scss @@ -2,7 +2,7 @@ font-family: 'Roboto'; font-style: normal; font-weight: 400; - font-display: optional; + font-display: fallback; src: url(https://fonts.gstatic.com/s/roboto/v32/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -11,7 +11,7 @@ font-family: 'Roboto'; font-style: normal; font-weight: 700; - font-display: optional; + font-display: fallback; src: url(https://fonts.gstatic.com/s/roboto/v32/KFOlCnqEu92Fr1MmWUlfBBc4AMP6lQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -20,7 +20,7 @@ font-family: 'Roboto Mono'; font-style: normal; font-weight: 400; - font-display: optional; + font-display: fallback; src: url(https://fonts.gstatic.com/s/robotomono/v23/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_ROW4AJi8SJQt.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }