I know that similiar questions were asked thousands of times, but none of the solutions meet exactly what I need. My scenario is as follows: I developed an online quiz which basically consists of a java-script, a css-file and a html-file that contains many images and some audio files. The online quiz works, but is very slow, since all the media consumes up to 15mb space.
How can I pre-load all the media files (images & audio) ? I don't want to list all individual image names in a array - there must be a way that pre-loads the media on the basis of an "id" or "class" or the "tag-type"?
on the basis of an "id" or "class" or the "tag-type"If you have a<img>tag withsrcset, then it already started downloading as you include that in your DOM.