8000 add (TEMP) timer to post initializers until we have proper state mana… · rmyers/pyscript@8dc1ade · GitHub
[go: up one dir, main page]

Skip to content

Commit 8dc1ade

Browse files
committed
add (TEMP) timer to post initializers until we have proper state management and bump pyodide version
1 parent 9becc53 commit 8dc1ade

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pyscriptjs/src/App.svelte

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@
4949
}
5050
5151
// now we call all post initializers AFTER we actually executed all page scripts
52-
for (let initializer of $postInitializers){
53-
initializer();
54-
}
52+
setTimeout(() => {
53+
for (let initializer of $postInitializers){
54+
initializer();
55+
}
56+
}, 5000);
57+
5558
}
5659
5760
function toggleComponentsNavBar(evt){
@@ -61,7 +64,7 @@
6164
</script>
6265

6366
<svelte:head>
64-
<script src="https://cdn.jsdelivr.net/pyodide/v0.19.0/full/pyodide.js" on:load={initializePyodide}></script>
67+
<script src="https://cdn.jsdelivr.net/pyodide/v0.20.0/full/pyodide.js" on:load={initializePyodide}></script>
6568
</svelte:head>
6669

6770
<Tailwind />

0 commit comments

Comments
 (0)
0