I’ve seen some other posts that have requested this, but no answers. I’m looking to defer the loading of images below the fold. Is there any capability to code that in? Or an equitable workaround that would accomplish the same time savings in the page load?
I pulled the desired items from the database, but I pushed them to the repeater in intervals.
5 images every 2 seconds, and it shortened the page loading time.
It’s not a lazy loading, but it’s a kind of workaround.
Yes, and if you set the placeholder image to be a 1 pixel white or black square, they will only weigh about 400 bytes or so each which is basically nothing.
This can also work with any images/backgrounds by the way, not just repeaters and for a lazy loading as you scroll down you could use anchors or the viewportEnter listener of any other elements on your page to trigger the data loading.
And I’ll also add to that, if you are using this on a static page you can also store as much data as possible in arrays inside the code to prevent wixdata calls or push the data into an array so that it is only ever called once.