fix: remove white screen on app start#171
Conversation
|
Thanks for the PR! I quickly skimmed over the issue that you linked but I saw that there are multiple types of workarounds/fixes. Could you elaborate more on the code that we're pushing and how it works ? Just trying to understand the issue more deeply. |
Tauri apps (this app) currently loads inmediatly without waiting for the webview to be ready, showing a blank content. Whats added in the proposed code is that the front end starts with visibility turned off, and it switched to on when it detects webview is ready with content. Now: the app will show for 2s and empty webview What to expect? The app before will have a small delay, for example 2s, before starting. But it wont show empty webview. I would consider this a temporal fix while tauri solves this (its not LTK problem, its a not resolved Tauri issue) |
Issue resolved: When app is initially loading it can show white screen for a couple seconds while loading for everything in the WebView.
This is known and annoying issue for Tauri that have not been attended officialy. This is the workaround is the most suggested
tauri-apps/tauri#5170