unoplatform / Uno.Wasm.Bootstrap

A simple nuget package to run C# code in a WASM-compatible browser
Other
371 stars 57 forks source link

Loading the app does not periodically yield to allow rendering #771

Open MartinZikmund opened 1 year ago

MartinZikmund commented 1 year ago

When the app is loading, the layouting of the browser is prevented as the thread is busy - so window size changes cause ugly white bars and the app seems frozen. It could be useful to break up the loading using setTimeout to allow the rendering to go through (if possible in terms of the current implementation)

image

jeromelaban commented 1 year ago

I don't think this is possible at this time, as the startup is mainly sequential and non-interruptible, but with threading we may be able to simplify this.