#Slow startup time?

5 messages · Page 1 of 1 (latest)

gray oracle
#

I generated a basic Tauri + Preact + Typescript + Bun app using cargo create-tauri-app --rc.
Is it normal for this kind of basic app to take 1-2s before it shows the html? After opening, it flashes a black screen, then uses the correct background color, then a white screen, then the entire content with the correct background color. If there isn't a way to speed up loading, is there a way to not flash the user but instead show a single color background the entire time the app loads?

For context, I use linux and opened the compiled AppImage produced by running bun run tauri build.

#

Also, when running the app with bun run tauri dev, the startup time seems to be much faster. The app still flashes a white screen though.

gray oracle
#

Interestingly enough, the slow startup time is ONLY an issue for the generated AppImage. Using the generated .deb, the App ist faster than in dev mode.

#

The flashing still bothers me though.

icy talon