From 9ae86e576b0f4e34317f170521d06dcdadb77fdc Mon Sep 17 00:00:00 2001 From: Nuc1eoN <2538022+Nuc1eoN@users.noreply.github.com> Date: Thu, 24 Feb 2022 00:27:38 +0100 Subject: [PATCH] theme: improve font loading --- static/css/theme.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/css/theme.css b/static/css/theme.css index 895c5a1636..b717af2bb3 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -8,6 +8,7 @@ font-style: normal; font-weight: 200; src: url("../fonts/WorkSans-ExtraLight.woff") format("woff2"), url("../fonts/WorkSans-ExtraLight.woff") format("woff"); + font-display: swap; } @font-face { @@ -15,6 +16,7 @@ font-style: normal; font-weight: 300; src: url("../fonts/WorkSans-Light.woff2") format("woff2"), url("../fonts/WorkSans-Light.woff") format("woff"); + font-display: swap; } @font-face { @@ -22,6 +24,7 @@ font-style: normal; font-weight: 400; src: url("../fonts/WorkSans-Regular.woff2") format("woff2"), url("../fonts/WorkSans-Regular.woff") format("woff"); + font-display: swap; } @font-face { @@ -29,6 +32,7 @@ font-style: normal; font-weight: 500; src: url("../fonts/WorkSans-Medium.woff2") format("woff2"), url("../fonts/WorkSans-Medium.woff") format("woff"); + font-display: swap; } @font-face { @@ -36,6 +40,7 @@ font-style: normal; font-weight: 600; src: url("../fonts/WorkSans-Bold.woff2") format("woff2"), url("../fonts/WorkSans-Bold.woff") format("woff"); + font-display: swap; } body {