One thing that bothers me sometime is the loading of images and other resources. When I use a repeater the clients will see the template and then it will change the contents. This little glitch between dummy content and real content makes clients less happy.
I would like to add a script to the Backend folder called preLoader.js and in that file I can set some globals with images and JSON files and more that needs to be loaded before the page actually gets onReady.
So if I would write...
let image1 = await getImages(1);
And that function would look up images I want in the data collection it would run before the page loads and then in my page code I could use that like.
import preLoader from 'wix-preloader';
$w("#image1").src = preLoader.image1;
I don't know if this will get solved once server side rendering is out for desktop but I would really like this. I want to use it for images, JSON data files, image galleries and more to speed up the page and don't see the dummy content in the repeaters if page loads slow.