diff options
-rw-r--r-- | web/script/transition.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/script/transition.ts b/web/script/transition.ts index 747ed70..5043c18 100644 --- a/web/script/transition.ts +++ b/web/script/transition.ts @@ -50,6 +50,7 @@ function prepare_load(href: string, back?: boolean) { const [head, body] = rt.split("<head>")[1].split("</head>") document.head.innerHTML = head document.body.outerHTML = body + globalThis.dispatchEvent(new Event("DOMContentLoaded")) fade(true) if (!back) window.history.pushState({}, "", href) patch_page() |