Preconnect to Google Fonts

I'm exploring removing Google Fonts entirely but in the meantime
I'd like to see if we can avoid having the fonts block rendering.
This commit is contained in:
Olivier Lacan 2023-03-07 21:17:55 -08:00
parent 46c63ecaca
commit bb8f3f3698

View File

@ -31,6 +31,9 @@
%title= current_page.data.title
%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'
- if legacy_version