From 2eab1b43516fd908005ec3556cee3969b011ab94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Sun, 23 Oct 2022 21:40:10 +0200 Subject: [PATCH] Fix: don't hide text until custom font is loaded. --- static/style.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/style.css b/static/style.css index 2c6c6c2..9f6e141 100644 --- a/static/style.css +++ b/static/style.css @@ -88,8 +88,11 @@ body nav input { url('./fonts/atkinson-hyperlegible/woff2/Atkinson-Hyperlegible-Regular-102a.woff2') format('woff2'), url('./fonts/atkinson-hyperlegible/woff/Atkinson-Hyperlegible-Regular-102.woff') format('woff'), url('./fonts/atkinson-hyperlegible/ttf/Atkinson-Hyperlegible-Regular-102.ttf') format('truetype'); + + /* Make sure text is displayed ASAP, even if this font is not ready. */ + font-display: swap; } -} + /* Node styling */ .node {