Skip to content

[bug] Blank white screen on load #5170

@justintaylor-dev

Description

@justintaylor-dev

Describe the bug

Small question / possible bug report, There's a blank white screen on load in dev and after build / install. I'm guessing this is just the Webview taking 600-800ms to load up, but if so, is there a way to either set the background color or hide the window until it's fully loaded so we don't get the blank white screen?

tauri load

Tauri is insanely awesome, keep up the great work! 👏

Reproduction

Build app
Launch App

Expected behavior

No response

Platform and versions

Environment
› OS: Windows 10.0.19043 X64
› Webview2: 105.0.1343.27
› MSVC:
- Visual Studio Community 2019
› Node.js: 16.13.2
› npm: 8.1.2
› pnpm: Not installed!
› yarn: 1.22.5
› rustup: 1.24.3
› rustc: 1.61.0
› cargo: 1.61.0
› Rust toolchain: stable-x86_64-pc-windows-msvc

Packages
› @tauri-apps/cli [NPM]: 1.0.5
› @tauri-apps/api [NPM]: 1.0.2
› tauri [RUST]: 1.0.5,
› tauri-build [RUST]: 1.0.4,
› tao [RUST]: 0.12.2,
› wry [RUST]: 0.19.0,

App
› build-type: bundle
› CSP: unset
› distDir: ../dist
› devPath: http://localhost:1420/
› framework: React

App directory structure
├─ .vscode
├─ dist
├─ node_modules
├─ public
├─ src
└─ src-tauri

Stack trace

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions