Prevent flash of invisible text with font-display: swap

This commit is contained in:
Sami Samhuri 2019-12-12 23:05:13 -08:00
parent eedba392d1
commit f18778774c

View file

@ -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;
}