Have you read https://kripken.github.io/emscripten-site/docs/getting_started/FAQ.html#how-can-i-tell-when-the-page-is-fully-loaded-and-it-is-safe-to-call-compiled-functions It says you can do something in "main" or in "onRuntimeInitialized "
Am Freitag, 22. Mai 2015 16:04:47 UTC+2 schrieb Alexandre Perrot: > > Unfortunately, the onload event does not seem to work properly in Chrome. > > In > > var my_lib = My_lib(); > window.onload = do_something; > > onload is called before My_lib() is executed, resulting in an error. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
