Skip to content

Commit b17ef71

Browse files
committed
feat: remove DOMContentLoaded method
1 parent edced94 commit b17ef71

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/components/misc/Markdown.astro

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ const className = Astro.props.class
1717
const observer = new MutationObserver(addPreCopyButton);
1818
observer.observe(document.body, { childList: true, subtree: true });
1919

20-
if (document.readyState === "loading") {
21-
document.addEventListener("DOMContentLoaded", addPreCopyButton);
22-
}
23-
2420
function addPreCopyButton() {
2521
observer.disconnect();
2622

0 commit comments

Comments
 (0)