From 365a181264ea74789816b6f9ebd57b923c1d72c4 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Mon, 3 Apr 2023 22:36:53 +0200 Subject: [PATCH] Don't let fonts block page load --- assets/fonts.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/fonts.scss b/assets/fonts.scss index ef1f013..4734760 100644 --- a/assets/fonts.scss +++ b/assets/fonts.scss @@ -75,10 +75,10 @@ fonts: url: "assets/fonts/Roboto-BlackItalic.ttf" --- {% for font in page.fonts %}{% for style in font.styles %}@font-face { - font-display: auto; - font-family: "{{ font.family }}";{% if style.weight %} - font-weight: {{ style.weight }};{% endif %}{% if style.style %} - font-style: {{ style.style}};{% endif %} + font-family: "{{ font.family }}"; src: url("{{ style.url | absolute_url }}"){% if style.format %} format("{{ style.format }}"){% endif %}; +{% if style.weight %} font-weight: {{ style.weight }};{% endif %} +{% if style.style %} font-style: {{ style.style}};{% endif %} + font-display: fallback; } {% endfor %}{% endfor %}