From b354565619802f0d3bc5035d89237d5c1f67434e Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 10 Oct 2026 06:06:22 +0300 Subject: Fixes for htmx --- public/footnotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/footnotes.js') diff --git a/public/footnotes.js b/public/footnotes.js index 57ded98..96a9400 100644 --- a/public/footnotes.js +++ b/public/footnotes.js @@ -8,7 +8,7 @@ const SIDENOTES = { readingWidth: null, // max width of the post text, null = no cap }; -document.addEventListener("DOMContentLoaded", () => { +document.addEventListener("htmx:load", () => { const area = document.querySelector("[data-scroll-area]"); const article = area?.querySelector("article"); if (!area || !article) return; -- cgit v1.3.1