Skip to content

Commit c309f14

Browse files
authored
Do not use unsupported SRI with webfont preload (#536)
* Revert "Use pipes to fingerprint forkawesome-webfont.woff2" This reverts commit df57316. * Revert "Verify forkawesome-webfont.woff2 integrity" This reverts commit 5791f1b.
1 parent 7ec4686 commit c309f14

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

layouts/_default/baseof.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
<link rel="canonical" href="{{ .Permalink }}">
2525
{{ end }}
2626

27-
{{ $fa := resources.Get "fonts/forkawesome-webfont.woff2" }}
28-
{{ $faFingerprint := $fa | fingerprint }}
29-
<link rel="preload" href="{{ $fa.RelPermalink }}?v=1.1.7" as="font" type="font/woff2" integrity="{{ $faFingerprint.Data.Integrity }}" crossorigin>
27+
<link rel="preload" href="/fonts/forkawesome-webfont.woff2?v=1.1.7" as="font" type="font/woff2" crossorigin>
3028

3129
{{ if .Site.IsServer }}
3230
{{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }}

0 commit comments

Comments
 (0)