Hi, I'm having trouble with my preloader since I don't really know how to code. Right now the preloader is there every time you go to the home page. How do you make it work only on the first time you enter the site?
This is my code so far that I copied from a template:
$w.onReady(() => {
waitForLoading();
});
export function button6_onClick() {
$w('#columnStrip2').show();
waitForLoading();
}
function waitForLoading() {
setTimeout(() => {
$w('#columnStrip2').hide('FadeOut');
}, 1500);
}
First time ever? first time per session? first time before page reload?