I have a web page which displays different images when different links on the same page are clicked. The images are very high quality and they take a lot of time to load, and I want the images to be downloaded and saved in the cache and then loaded on onclick event of the links.
I have a web page which displays different images when different links on the
Share
Just load them all as hidden images.
CSS:
HTML:
You can easily simulate this with JavaScript, adding each of the images to the DOM after the DOMContentLoaded event – the same logic applies.