summaryrefslogtreecommitdiff
path: root/public/footnotes.js
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2026-10-10 06:06:22 +0300
committerKyren223 <contact@kyren.codes>2026-10-10 06:06:22 +0300
commitb354565619802f0d3bc5035d89237d5c1f67434e (patch)
tree88a084330f62e1e5f56fe5048b40512e39f9a978 /public/footnotes.js
parent3c7f9700b91e60937f0ccfb5d036c1e670c00511 (diff)
Fixes for htmx
Diffstat (limited to 'public/footnotes.js')
-rw-r--r--public/footnotes.js2
1 files changed, 1 insertions, 1 deletions
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;