adding-tauri-splashscreen

Implements splash screens in Tauri v2 applications with window configuration and initialization coordination.

Updated Jun 7, 2026
One-click install
npx skills add https://github.com/dt418/better-shot-x --skill adding-tauri-splashscreen-dt418
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adding-tauri-splashscreen
Source: https://github.com/dt418/better-shot-x/tree/main/.agents/skills/adding-tauri-splashscreen
Command: npx skills add https://github.com/dt418/better-shot-x --skill adding-tauri-splashscreen-dt418

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tokio, @tauri-apps/api.

What problem does it solve? Tauri applications often show a blank or unresponsive main window during startup while frontend assets load and backend services initialize, creating a poor first impression. This Skill provides a complete pattern for displaying a splash screen during startup and transitioning to the main window only when initialization completes. ## Core Features & Use Cases - Window Configuration: Set up dual windows in tauri.conf.json with hidden main window and a transparent, borderless splash window. - Coordinated Initialization: Track frontend and backend readiness with a shared state and close the splash only when both tasks complete. - Styling Variations: Ready-to-use splash HTML/CSS templates including spinner, progress bar, minimal, and dark-glow themes. - Use Case: A desktop app that loads a database and configuration at launch can show a branded loading screen, then reveal the main window once both the Rust backend and the TypeScript frontend signal readiness. ## Quick Start Add a splash screen to my Tauri v2 app that shows while the app initializes and closes when both frontend and backend are ready.

Frequently Asked Questions about adding-tauri-splashscreen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a splash screen to a Tauri v2 app?

Configure two windows in tauri.conf.json: a hidden main window with visible set to false and a splashscreen window pointing to a splash HTML file. Close the splash and show the main window via a Tauri command once initialization finishes.

How to close a Tauri splashscreen when the app is ready?

Call a Tauri command such as close_splashscreen from the frontend after initialization. The command uses app.get_webview_window to close the splash window, then shows and focuses the main window.

Why is my Tauri splash screen background not transparent?

Transparency requires transparent set to true in the window configuration and background set to transparent on the html and body CSS elements. On some platforms you also need decorations set to false.

Why does my Tauri main window appear before the splash screen closes?

The main window shows early if visible is not set to false in tauri.conf.json or if the completion command is invoked prematurely. Verify window labels in code match the configuration exactly.

Can I use std::thread::sleep during Tauri backend initialization?

No, std::thread::sleep blocks the entire async runtime and freezes the application. Use tokio::time::sleep inside async functions so the runtime can continue processing other tasks during initialization.