I need to trigger the preload function on the wix site, so that when anyone accesses a page a slide appears with a promotion and the phrase LOADING, instead of the blank page.
For many this page blank while the website loads may seem like a bug and they end up leaving the page. I have the code below but I can only make it work after the page has loaded I wanted to make it work while the page loads. I looked in the API library but did not find anything, if someone could help me complete the code I thank you very much.
Hi Tal, that preloader example is really unhelpful. In fact, i think it seems to be just smoke and mirrors from Wix - it just adds some animation AFTER the site has already loaded most of the content. Wix needs to get its act together an add a preloader that runs in the before the page content starts loading, not after it completes. The best hack i’ve seen so far is to use this code below, though disappointing that Wix doesn’t have more native support.
it just adds some animation AFTER the site has already loaded most of the content.
In the example they put a top layer with the loading animation on the site that’s visible while the page loads and hide it whe the page has finshed loading… that worked for my use quite well (showing the preloader while waiting for a gallery to be filled up and loaded completely).
No Tal this same issue happening so many other people also
you can see the
I created a page which has repeater and it takes too long to load it takes about 10 seconds and before that is show complete white screen for 10 seconds many visitors are going away. Is there a way to create preloader which will be shown fast until the other content is loaded.and after that it automaticly to go away.
I had created the preloader but it is not working here is the code which i use
$w.onReady(() => { waitForLoading(); }); export function button6_onClick(event) { $w(’ #columnstrip1 ‘).show(); waitForLoading(); } function waitForLoading() { setTimeout(() => { $w(’ #columnstrip1 ').hide(‘FadeOut’); }, 1500); }
This pre loader is shown when the other content is shown and before that there is full white screen for 10 sec. I need something that loads prior loading the other content.
Sometimes it doesn’t shows pre loader after white screen it automatically load the content.
Thank you for this forum and thank you for the pre-loader example for the page. It works on the desktop but the mobile view for me. It will load the logo and the website menu, but the next thing to load is a video (very small video cover image and the video is a URL to Vimeo) and this is delayed upwards of 10 seconds + It looks like it’s not loading and leaves a white blank space - does anyone have suggestions of a pre-loader to the wix video. I have tried the preloader in the header and body start but same result. Feedback- thoughts appreciated.
This is a wonderful solution BUT it only works the first time the site is loaded. I have one page in my site which is very heavy. Any tips on how to make this preloader work on every page? Big thanks.