From 73dfe098add395f1d87d8fa4c62bc9fac3aa7839 Mon Sep 17 00:00:00 2001 From: Jakub Cabak Date: Thu, 11 Apr 2024 18:27:09 +0200 Subject: [PATCH] Performance improvement --- css/fonts.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/css/fonts.css b/css/fonts.css index 5e3485b..28addb7 100644 --- a/css/fonts.css +++ b/css/fonts.css @@ -9,6 +9,7 @@ url("../fonts/titilliumweb-extralight-webfont.ttf") format("truetype"); font-weight: 200; font-style: normal; + font-display: swap; } /* Light & light italic, used as regular */ @@ -21,6 +22,7 @@ url("../fonts/titilliumweb-light-webfont.ttf") format("truetype"); font-weight: normal; font-style: normal; + font-display: swap; } @font-face { font-family: "Titillium"; @@ -31,6 +33,7 @@ url("../fonts/titilliumweb-lightitalic-webfont.ttf") format("truetype"); font-weight: normal; font-style: italic; + font-display: swap; } /* Semibold & semibold italic, used as bold */ @@ -43,6 +46,7 @@ url("../fonts/titilliumweb-semibold-webfont.ttf") format("truetype"); font-weight: bold; font-style: normal; + font-display: swap; } @font-face { font-family: "Titillium"; @@ -53,4 +57,5 @@ url("../fonts/titilliumweb-semibolditalic-webfont.ttf") format("truetype"); font-weight: bold; font-style: italic; + font-display: swap; }