mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4438] [CLOSED] [GUI] Show the window after the first paint instead of a white page #5047
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5047
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4438
Author: @xvcezrqpbxtpzblrt
Created: 10/28/2026
Status: ❌ Closed
Base:
main← Head:desktop/no-white-flash-027📝 Commits (1)
557e09f[GUI] Show the window when the page has painted, not while it is still blank📊 Changes
3 files changed (+116 additions, -9 deletions)
View changed files
📝
apps/desktop/src-tauri/src/main.rs(+45 -7)📝
apps/desktop/src-tauri/tauri.conf.json(+19 -1)📝
apps/host/src/main.tsx(+52 -1)📄 Description
## Problem
On a cold start the window shows the web view's default white page until the host is up and React has painted: a white flash on every launch, longer on a slow disk.
Result
main.tsxonce the first screen is committed), with a 12 s fallback in the page and a 15 s one in the shell so a failure still shows a window.Validation
cargo checkclean; the Tauri capability for the show/focus commands is intauri.conf.json.Limits and the trade-off
index.htmlwould remove the white flash without hiding the window; this branch is the more thorough version of that.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.