1
0
Fork 0
mirror of https://github.com/GuerillaStudio/now-playing synced 2024-11-30 00:41:41 +00:00

preload webfonts

This commit is contained in:
Tixie 2023-02-21 22:11:57 +01:00
parent fabac990b1
commit 66623e43f2

View file

@ -45,6 +45,13 @@
{{ $secureStyle := $style | resources.Fingerprint "sha512" }}
<link rel="preload" href="{{ $secureStyle.Permalink }}" as="style" />
<link rel="stylesheet" href="{{ $secureStyle.Permalink }}" integrity="{{ $secureStyle.Data.Integrity }}">
<link rel="preload" as="font" type="font/woff2" href="/fonts/sourcesanspro-regular-webfont.woff2" crossorigin/>
<link rel="preload" as="font" type="font/woff2" href="/fonts/sourcesanspro-semibold-webfont.woff2" crossorigin/>
<link rel="preload" as="font" type="font/woff2" href="/fonts/sourcesanspro-black-webfont.woff2" crossorigin/>
</head>
<body>