Does anyone want us to program a clean preloader into our webflow page?
I’ve spent the last few days trying to find a good preloader here in the forum. The preloaders that I can create directly in Webflow don’t work for me the way a preloader should work. Especially when you have loaded the entire page, the next reload shouldn’t take as long, but should be in the cache. I don’t have that feeling with this type of preloader. It always charges just as long.
Maybe you could use some pure javascript readyState method to detect when your page is fully loaded and trigger your animation accordingly.
switch (document.readyState) {
case "loading":
// The document is still loading.
break;
case "interactive":
// The document has finished loading. We can now access the DOM elements.
// But sub-resources such as images, stylesheets and frames are still loading.
break;
case "complete":
// The page is fully loaded.
break;
}