Move script to head with defer attribute set. Should give optimal performance.
This commit is contained in:
parent
929d6e7e28
commit
d8ac6ecfd0
1 changed files with 19 additions and 6 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue