I have a preloader on the home page of my website, but when I add new elements to my home page, the new element shows up on top of the preloader when I publish the website and changing the layers doesn't seem to help.
Also, I made my website multilingual, but when I switch between languages, the preloader still shows up during the transition between languages, how should I change that?
Here is my code:
import {session} from "wix-storage";
let status = session.getItem("status");
$w.onReady(() => {
if(status){
$w("#columnStrip2").collapse();
} else {
waitForLoading();
session.setItem("status", "revisit");
}
})
export function button6_onClick() {
$w('#columnStrip2').show();
waitForLoading();
}
function waitForLoading() {
setTimeout(() => {
$w('#columnStrip2').hide('FadeOut');
}, 1500);
}