Move script to head with defer attribute set. Should give optimal performance.

This commit is contained in:
Fredrik Jonsson 2019-04-09 13:18:34 +02:00
commit d8ac6ecfd0

View file

@ -8,6 +8,7 @@
{{- partial "meta.html" . -}}
{{- partialCached "styles.html" . -}}
{{ block "header" . }}{{ end }}
{{ partial "scripts.html" . -}}
{{ if and .Site.Params.piwikTrackerUrl .Site.Params.piwikSiteID }}{{ partialCached "matomo.html" . }}{{ end -}}
</head>
@ -39,6 +40,5 @@
</div>
{{ if $.Param "mobilemenu" }}{{ partial "mobilemenu.html" . }}{{ end -}}
{{ partial "scripts.html" . -}}
</body>
</html>