From 7bd44602949e7392bb9026c16436b2ad30a137b3 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 30 Mar 2024 22:11:21 +0200 Subject: [PATCH] Move JavaScript to head (#449) We use defer for all JS so the requests are non-blocking --- src/layouts/_default/baseof.html | 1 - src/layouts/partials/head.html | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/_default/baseof.html b/src/layouts/_default/baseof.html index 53189319e..43f338ab2 100644 --- a/src/layouts/_default/baseof.html +++ b/src/layouts/_default/baseof.html @@ -20,6 +20,5 @@ {{ partial "footer" . }} - {{ partial "scripts" . }} diff --git a/src/layouts/partials/head.html b/src/layouts/partials/head.html index 31ce3eb3c..fba3cb9ac 100644 --- a/src/layouts/partials/head.html +++ b/src/layouts/partials/head.html @@ -24,6 +24,7 @@ {{ partial "stylesheet" . -}} {{ partial "favicons" . -}} {{ partial "social" . -}} +{{ partial "scripts" . -}} {{- if hugo.IsProduction }} {{ partial "analytics" . -}} {{- end }}