Enable font-display: swap on Google Fonts

Should make the FOUT a thing of the past.
This commit is contained in:
Olivier Lacan 2023-03-08 01:24:42 -08:00
parent 592a01f654
commit acd4093fb1

View File

@ -34,8 +34,8 @@
%link{ rel: "preconnect", href: "https://fonts.googleapis.com" }
%link{ rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: true }
%link{ rel: "stylesheet", href: "https://fonts.googleapis.com/css?family=Muli:400,700" }
= stylesheet_link_tag '//fonts.googleapis.com/css?family=Source+Code+Pro:400,700'
= stylesheet_link_tag "//fonts.googleapis.com/css?family=Muli:400,700&display=swap"
= stylesheet_link_tag "//fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap"
- if legacy_version
= stylesheet_link_tag 'legacy'
- else