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.