From f18778774ce6c906a360b162e0fbc8f5a9c7fab6 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Thu, 12 Dec 2019 23:05:13 -0800 Subject: [PATCH] Prevent flash of invisible text with font-display: swap --- public/css/style.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/css/style.css b/public/css/style.css index 85a0565..b76c2ce 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -94,6 +94,7 @@ body { background-color: #f7f7f7; color: #222; font-family: 'museo-sans', 'Helvetica Neue', 'Verdana', 'Roboto', sans-serif; + font-display: swap; padding-bottom: constant(safe-area-inset-bottom); } @@ -139,6 +140,7 @@ header.primary h1, header.primary h4 { padding: 0; word-wrap: break-word; font-family: 'museo-sans', 'Helvetica Neue', 'Verdana', 'Roboto', sans-serif; + font-display: swap; font-weight: normal; }