Skip to content

Commit f5fdd4e

Browse files
committed
Add preconnect to Google Fonts
1 parent 64eaa24 commit f5fdd4e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎layouts/_default/baseof.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
{{- $googleFontsLink := .Site.Params.googleFontsLink | default "https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700" }}
2121
{{- if hasPrefix $googleFontsLink "https://fonts.googleapis.com/" }}
22+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2223
<link rel="dns-prefetch" href="//fonts.googleapis.com">
2324
<link rel="dns-prefetch" href="//fonts.gstatic.com">
2425
<link rel="stylesheet" {{ printf `href="%s"` $googleFontsLink | safeHTMLAttr }}>

0 commit comments

Comments
 (0)