From ea845e50495d79f48315c281186a51aa486ae263 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Sat, 2 Aug 2025 09:27:40 +0800 Subject: perf: refactor render-blocking action-menu logic - put initialization script at the end of the page - delay initialization furthermore - delay comment count fetch after giscus iframe is loaded --- layouts/_partials/scripts.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'layouts/_partials/scripts.html') diff --git a/layouts/_partials/scripts.html b/layouts/_partials/scripts.html index 6dc0080b..7c000323 100644 --- a/layouts/_partials/scripts.html +++ b/layouts/_partials/scripts.html @@ -7,6 +7,10 @@ {{ partial "scripts/fancybox-js" . }} {{ partial "scripts/aplayer-js" . }} +{{ if .File }} + {{ partial "scripts/action-menu-js" (.File.UniqueID | urlize) }} +{{ end }} + {{ with resources.Get "js/tooltip.js" }} {{ end }} -- cgit v1.2.3