Skip to content

Prevent white flash while loading app #4177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aervxa
Copy link

@aervxa aervxa commented Aug 15, 2025

I'd rather wait 500ms than see blank white for 500ms

It was a heck of a pain to implement since i tried so many things, turned out tauri-plugin-window-state was interefering
don't worry, i didn't just remove "the problem" :3

I whitelisted window POSITION and SIZE to get saved, but not the VISIBLE state, so that the the window can start with visible: false
the frontend was alr calling show_window after mounting which sets visible back to true, but since visible was true from the start, that was a useless invoke (except for window.set_focus() maybe)

Seeing this in prod would be much appreciated, or anything else that would remove the white flash, this may not be the best way

hmmm

"may" is the keyword :3

@IMB11 IMB11 added bug Something isn't working app Relates to Modrinth App labels Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app Relates to Modrinth App bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants