From db5a0b48de137c9c8ebe74a5ddf2efa1be525d32 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 6 Mar 2023 23:24:08 +0800 Subject: [PATCH] Move persistent theme script earlier This makes it faster for the perceived performance and placing it the moment after loading the stylesheet is the quickest way to avoid unstyled flash of content. --- layouts/partials/head.html | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 257e31f..298a41f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -18,6 +18,14 @@ {{- $style = $style | resources.Minify | resources.Fingerprint -}} {{- end }} +{{- /* Persistent theme. +It's a very small script so there's little effect on perceived performance. */ -}} + @@ -50,13 +58,3 @@ {{ template "_internal/disqus.html" . }} {{- end }} - -{{- /* Persistent theme. -It's a very small script so there's little effect on perceived performance. */ -}} - -