From 4e8ebfa722883f88714df005597e951de5652e83 Mon Sep 17 00:00:00 2001 From: David Larlet Date: Tue, 20 Jun 2023 10:20:21 -0400 Subject: [PATCH] Set `font-display: swap;` for fonts definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > Gives the font face an extremely small block period and an infinite swap period. — https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display#values --- umap/static/umap/font.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/umap/static/umap/font.css b/umap/static/umap/font.css index 5a7dbd05..39104b2b 100644 --- a/umap/static/umap/font.css +++ b/umap/static/umap/font.css @@ -9,6 +9,7 @@ url('./font/FiraSans-Light.woff') format('woff'); font-weight: normal; font-style: normal; + font-display: swap; } @font-face { @@ -17,6 +18,7 @@ url('./font/FiraSans-SemiBold.woff') format('woff'); font-weight: bold; font-style: normal; + font-display: swap; } @font-face { @@ -25,6 +27,7 @@ url('./font/FiraSans-LightItalic.woff') format('woff'); font-weight: normal; font-style: italic; + font-display: swap; }