I would like to show a loading icon/ illustration on my website, until we have solved the huge load time problem on our website.
But the loader shows up too late. You can check this link: https://nettbutikk.ellco.no/produkt/o20/ and see that the loader first appears at the end of the loading.
This is the jQuery code:
jQuery(document).ready(function() {
jQuery('#wptime-plugin-preloader').delay(2050).fadeOut("slow");
});
How can I alter the code, so that the loader appears right at the beginning of the loading process? E.g. right after I click the reload button in the browser?
Removing the delay didn't help.
Thanks in advance!