#Whiteflash when changing view with SvelteKit + Tauri on MacOS

7 messages · Page 1 of 1 (latest)

lapis fjord
#

Title says it pretty much, Im aware that it is because the page is loading, but It kills the experience on desktop and gives my app a website feeling app... Is there a way to fix this?

obsidian bear
#

Can you add an inline style that sets the background colour to black on the body? (no css, just raw styles)

reef marsh
#

in 2.1 there's also a window.backgroundColor config now that may help.

lapis fjord
#

honestly that just seems like a bandaid on the real issue...

reef marsh
#

what's the real issue then? do you perhaps have a minimal reproduction for us? I've tested sveltekit tauri apps in the past and can't remember seeing white flashes (after initial app load)

obsidian bear
#

It will be from before the CSS has compiled would be my guess

lapis fjord