Making viewport based loader in WIX Code?

Has anyone tried to to make a viewport based loader in WIX Code? I want to load the home page but just the stuff within the viewport visible to the user.

Then when that is displayed I want to load elements based in view order so that the home page loads faster.

Have anyone tried this or even believe it will work?

Hey,
You could use onViewportEnter for each element, but that might be cumbersome and will probably not have a significant effect on your website.

If you hide an element does it load in the DOM then or not?

Yes, the DOM is loaded and visibility attribute is set to “hidden”.