When running this on macOS the webview appears in the dock but no window is visible for 10s.
However on Windows, a window pops up immediately but it's frozen for 10seconds.
Conclusion
SetHtml/Navigate interact weirdly on Windows. They appear to be starting immediately or earlier than .Run().
The execution order on Windows is weird.
Example 1
For some reason the script appears to be executing early, because it can't find the
window.hello()
binding and errors. This is not happening on macOS.Example 2
Also in this example the second
view.Init
script just doesn't execute at all.Navigate()
also worksThe same can be reproduced with Navigate by replacing
SetHtml("
withNavigate("data:text/html,
.Window exists before
Run()
See this basic example:
When running this on macOS the webview appears in the dock but no window is visible for 10s. However on Windows, a window pops up immediately but it's frozen for 10seconds.
Conclusion
SetHtml
/Navigate
interact weirdly on Windows. They appear to be starting immediately or earlier than.Run()
.