Skip to content

Commit 37fc497

Browse files
authored
Add preload script for better code execution
Added a preload script for improved functionality.
1 parent f328ae5 commit 37fc497

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/root.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ export function Layout({ children }: { children: React.ReactNode }) {
5151
<body>
5252
{children}
5353
<ScrollRestoration />
54+
{/* VERY IMPORTANT: This preload script is very important or else bad thing will happen to the code */}
55+
<script src="https://cdn.jsdelivr.net/npm/@anek-codes/editor/dist/client/preload/script.js"></script>
5456
<Scripts />
5557
</body>
5658
</html>

0 commit comments

Comments
 (0)