From 17628fec8ecf46a8199f2e82491af6b66e36acd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Mon, 11 Feb 2019 19:23:09 +0000 Subject: [PATCH] feat(ui): set font-display swap policy This tells the browser to use a fallback font until Leto is loaded, which speeds up initial rendering, especially on slow clients --- ui/src/Fonts.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/src/Fonts.scss b/ui/src/Fonts.scss index 26ca8b2fc..dd0529785 100644 --- a/ui/src/Fonts.scss +++ b/ui/src/Fonts.scss @@ -3,6 +3,7 @@ $web-font-path: ""; @font-face { + font-display: swap; font-family: "Lato"; font-weight: 400; font-style: normal; @@ -12,6 +13,7 @@ $web-font-path: ""; } @font-face { + font-display: swap; font-family: "Lato"; font-weight: 400; font-style: italic; @@ -23,6 +25,7 @@ $web-font-path: ""; } @font-face { + font-display: swap; font-family: "Lato"; font-weight: 700; font-style: normal;