hugo-bearblog : script load order fix
This commit is contained in:
parent
1c1dd34eb2
commit
4fdb98d0ce
@ -55,9 +55,9 @@
|
|||||||
{{- $darkmode_load_script := (resources.Get "js/darkmode_load.js") | resources.Minify}}
|
{{- $darkmode_load_script := (resources.Get "js/darkmode_load.js") | resources.Minify}}
|
||||||
{{- if not site.Params.assets.disableFingerprinting }}
|
{{- if not site.Params.assets.disableFingerprinting }}
|
||||||
{{- $darkmode_load_script := $darkmode_load_script | fingerprint }}
|
{{- $darkmode_load_script := $darkmode_load_script | fingerprint }}
|
||||||
<script async crossorigin="anonymous" src="{{ $darkmode_load_script.RelPermalink }}" integrity="{{ $darkmode_load_script.Data.Integrity }}"></script>
|
<script defer crossorigin="anonymous" src="{{ $darkmode_load_script.RelPermalink }}" integrity="{{ $darkmode_load_script.Data.Integrity }}"></script>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<script async crossorigin="anonymous" src="{{ $darkmode_load_script.RelPermalink }}"></script>
|
<script defer crossorigin="anonymous" src="{{ $darkmode_load_script.RelPermalink }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- A partial to be overwritten by the user.
|
<!-- A partial to be overwritten by the user.
|
||||||
|
Loading…
Reference in New Issue
Block a user