From 711553f6ed8713fcb584b8f766d3f511dee3ca62 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Thu, 23 Sep 2021 19:58:34 +0200 Subject: [PATCH] Added font-display: swap to allow drawing text before loading font in css Signed-off-by: Louis Vallat --- assets/css/main.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/css/main.css b/assets/css/main.css index e1a63ec..d261545 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -6,12 +6,14 @@ font-family: "Roboto"; src: url("/assets/fonts/Roboto-Regular.ttf"); font-weight: 400; + font-display: swap; } @font-face { font-family: "Roboto"; src: url("/assets/fonts/Roboto-Medium.ttf"); font-weight: 500; + font-display: swap; } html {