Pau Marzo
05/28/2024, 5:53 PMPablichjenkov
05/28/2024, 6:25 PMChrimaeon
05/28/2024, 6:39 PMPablichjenkov
05/28/2024, 6:57 PMindex.html
file but then how to know where the page loads the full composeApp.js
file? If you show an example it would be really helpful.Chrimaeon
05/28/2024, 7:01 PMmain
you should have something like this
renderComposable(container) {
App()
}
that code is from compose html but you should have something similiar for compose web. at that point you can be sure your wasm file is loaded because it executes the code. right before that or inside your App remove the div from the dom tree with something like
document.querySelector("#page-loader")?.remove()
Chrimaeon
05/28/2024, 7:03 PMPablichjenkov
05/28/2024, 7:03 PMonWasmReady()
not sure if the same thoPablichjenkov
05/28/2024, 7:04 PMPau Marzo
05/30/2024, 5:26 PM@OptIn(ExperimentalComposeUiApi::class)
fun main() {
document.getElementsByClassName("loader-container")[0]?.remove()
ComposeViewport(document.body!!) {
App()
}
}