Splash Screen¶
Crabyard includes a built-in splash screen that displays instantly while your React app loads. Once the frontend finishes loading, the splash screen closes and the main window appears.
How it works¶
- The app starts with the main window hidden (
"visible": false) - A small splash window shows immediately with a spinner animation
- When the React app finishes loading (
PageLoadEvent::Finished), the Rust backend shows the main window and closes the splash
No frontend code or configuration is needed — it works automatically.
Customizing¶
Edit public/splash.html to change the splash screen content, colors, or animation. The default uses a dark background with a CSS spinner and your app name.
Disabling the splash screen¶
To remove the splash screen:
- Delete the
splashwindow entry fromsrc-tauri/tauri.conf.json - Set
"visible": trueon the main window - Remove the
on_page_loadhandler fromsrc-tauri/src/lib.rs - Delete
public/splash.html