How do you make the preloader hide when switching between languages on multilingual website?

The preloader on the home page of my website still appears when I switch between languages on my multilingual website. How do I make it hide during the transition between languages?

Which preloader? Do you have any code on your page?

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 );
}

@miaxie I’ve never built a multilingual site, so I can’t tell you for sure.
But I’d try 2 options:

  1. to user local instead of session.

  2. to code it hide the loader if the lang is different than default.

@jonatandor35 Do you have an idea for what the code would look like?