1
0
mirror of https://github.com/pyscript/pyscript.git synced 2022-05-01 19:47:48 +03:00

add (TEMP) timer to post initializers until we have proper state management and bump pyodide version

This commit is contained in:
Fabio Pliger
2022-04-11 20:13:57 -05:00
parent 9becc5381f
commit 8dc1ade1e2

View File

@@ -49,9 +49,12 @@
} }
// now we call all post initializers AFTER we actually executed all page scripts // now we call all post initializers AFTER we actually executed all page scripts
for (let initializer of $postInitializers){ setTimeout(() => {
initializer(); for (let initializer of $postInitializers){
} initializer();
}
}, 5000);
} }
function toggleComponentsNavBar(evt){ function toggleComponentsNavBar(evt){
@@ -61,7 +64,7 @@
</script> </script>
<svelte:head> <svelte:head>
<script src="https://cdn.jsdelivr.net/pyodide/v0.19.0/full/pyodide.js" on:load={initializePyodide}></script> <script src="https://cdn.jsdelivr.net/pyodide/v0.20.0/full/pyodide.js" on:load={initializePyodide}></script>
</svelte:head> </svelte:head>
<Tailwind /> <Tailwind />