head: rm invalid rel="preload" on search assets

This commit is contained in:
Aditya Telange 2020-12-27 22:39:03 +05:30
parent 4389e03df9
commit 838e607122
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -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 -}}