I have several images on the web page. What I need is that when loading the page all the images are loaded the same (for example, the drawing of a clock, this I do to load the web faster) and that they "pre-load" the correct images in cache. When these correct images are completely "pre-loaded" in cache, replace the temporary image (that of the clock) with the correct one.
I have tried it with css property "background" but it does not work for me. Does not show the clock, shows directly the original / correct.
In short, when loading the page that shows an image and when it is preloaded the correct one that is replaced by another one.
I've also tried onload but nothing, it does not work either.
Greetings.