diff options
author | metamuffin <metamuffin@disroot.org> | 2023-10-21 21:18:12 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-10-21 21:18:12 +0200 |
commit | 1f398d2b082a0f36b070bb5dd8287ab6f855ae78 (patch) | |
tree | 6bdf0cf0de12f6deca9e104711defe3a4449a29e | |
parent | 3a58f62d819ef37be536d259461ce50d54b7c5ac (diff) | |
download | jellything-1f398d2b082a0f36b070bb5dd8287ab6f855ae78.tar jellything-1f398d2b082a0f36b070bb5dd8287ab6f855ae78.tar.bz2 jellything-1f398d2b082a0f36b070bb5dd8287ab6f855ae78.tar.zst |
dispatch domcontentloaded when trans done
-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() |