Is it possible to observe the progress of the comp...
# compose-web
r
Is it possible to observe the progress of the composeApp.js being loaded + once it's loaded, it loading linked resources (i.e. the full 20MB of data)? Usually web canvas apps display such a loader because it's very important for users to know what's happening and why their app seems stuck after say 30 seconds of waiting on a slow connection. I have a html spinner already but on a slow connection it seems insufficient to just have an indeterminate spinner.
👀 3
j
I'm far from knowledgeable in HTML and Javascript, however, you can monitor the ongoing network requests (fetching the .wasm would likely duplicate the calls). A quick search hinted at Performance API. You can also edit the composeApp.js, where the fetching of the .wasm field happens, and listen to these. I distribute the files through GitHub Actions, so I could simply edit the generated ComposeApp.js in there before it's distributed and inject any listener to the fetchers.
r
Yeah, I am not experienced on the web side either, I also though of monitoring the requests and have asked ChatGPT for a solution but it did not work. So I was thinking if someone has a more reliable one.