make content not show until finished loading
This commit is contained in:
parent
18c30de30b
commit
6961bec73f
1 changed files with 3 additions and 0 deletions
|
|
@ -228,6 +228,8 @@ window.loadHeader(async function(headerContainer) {
|
|||
|
||||
const init = async () => {
|
||||
const overlay = document.getElementById("loading-overlay");
|
||||
const infoBox = document.querySelector('.splat-info-box');
|
||||
if (infoBox) infoBox.style.visibility = "hidden";
|
||||
let cacheFound = false;
|
||||
|
||||
const cached = sessionStorage.getItem('user_cache');
|
||||
|
|
@ -257,6 +259,7 @@ window.loadHeader(async function(headerContainer) {
|
|||
}
|
||||
} finally {
|
||||
if (overlay) overlay.style.display = "none";
|
||||
if (infoBox) infoBox.style.visibility = "visible";
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue