Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

140
Views
WIX JS - Custom Preloader Screen

I have got a site made with wix and I found this code that allows you for a custom preloader screen. It works fine, however it keeps triggering whenever the site is refreshed or you press the back button. Can I make it trigger only once every 10 minutes or once per session? If you have an idea on how to do it would you be kind enough to post your solution? I studied JS but it was long ago and in the end I gave up. Cheers!

$w.onReady(() => {
    waitForLoading();
});

export function button6_onClick() {
    $w('#lightbox1').show();
    waitForLoading();
}

function waitForLoading() {
    setTimeout(() => {
        $w('#lightbox1').hide('FadeOut');
    }, 1500);
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!