summaryrefslogtreecommitdiff
path: root/public/footnotes.js
diff options
context:
space:
mode:
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;