delay splash screen, only show if loading takes too long

This commit is contained in:
Henry Jameson 2025-08-14 16:45:24 +03:00
commit 97adff267f
4 changed files with 10 additions and 7 deletions

View file

@ -80,6 +80,7 @@ const persistedStateOptions = {
console.error('Storage error', e)
storageError = e
}
document.querySelector('#splash').classList.remove('initial-hidden')
document.querySelector('#mascot').src = `/static/pleromatan_apology${isFox}_small.webp`
document.querySelector('#status').removeAttribute('class')
document.querySelector('#status').textContent = i18n.global.t('splash.loading')