web/layout: preload meowbalt assets

no more flickering i hope

is this rational? maybe not so much, but it makes cobalt feel like a native app
This commit is contained in:
wukko 2025-03-11 13:26:44 +06:00
parent 429591c445
commit e6e2fea870
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -75,6 +75,7 @@
data-theme={browser ? $currentTheme : undefined}
lang={$locale}
>
<div id="preload-meowbalt" aria-hidden="true"></div>
<div
id="cobalt"
class:loaded={browser}
@ -644,4 +645,17 @@
transform: rotate(360deg);
}
}
/* preload meowbalt assets to prevent flickering in dialogs */
#preload-meowbalt {
width: 0;
height: 0;
position: absolute;
z-index: -10;
content:
url(/meowbalt/smile.png)
url(/meowbalt/error.png)
url(/meowbalt/question.png)
url(/meowbalt/think.png);
}
</style>