Loading images in SPA

0

I'm developing a SPA-based application with Vue.js and would like to improve the loading of the images.

Now whenever the user accesses all the images they are downloaded, slowing down the total loading of the page. I would like only the initially displayed images to be loaded in the browser access, and after the initial "load" the remaining images.

Some images are being referenced only in javascript and CSS and are only downloaded after first use.

Is there any way to just download the initial images and the others to load asynchronously after the load?

    
asked by anonymous 13.07.2018 / 16:52

0 answers