mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-25 12:01:37 +01:00
head: rm invalid rel="preload" on search assets
This commit is contained in:
parent
4389e03df9
commit
838e607122
@ -41,12 +41,10 @@
|
|||||||
{{- $fusejs := resources.Get "js/fuse.js" }}
|
{{- $fusejs := resources.Get "js/fuse.js" }}
|
||||||
{{- if not .Site.Params.assets.disableFingerprinting }}
|
{{- if not .Site.Params.assets.disableFingerprinting }}
|
||||||
{{- $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify | fingerprint }}
|
{{- $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify | fingerprint }}
|
||||||
<script defer src="{{ $search.Permalink }}" rel="preload" as="script" onload="loadSearch();"
|
<script defer src="{{ $search.Permalink }}" onload="loadSearch();" integrity="{{ $search.Data.Integrity }}"></script>
|
||||||
integrity="{{ $search.Data.Integrity }}">
|
|
||||||
</script>
|
|
||||||
{{- else}}
|
{{- else}}
|
||||||
{{ $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify }}
|
{{ $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify }}
|
||||||
<script defer src="{{ $search.Permalink }}" rel="preload" as="script" onload="loadSearch();"></script>
|
<script defer src="{{ $search.Permalink }}" onload="loadSearch();"></script>
|
||||||
{{- end}}
|
{{- end}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user