Every thing worked fine, except:
If you were visiting the page for the first time, so that the images is not cached in your browser yet.. The main images loads with the page since they are a part of that page but..
When hovering on the button which supposed to swap the image... the current image disappears but the image that should be swapped with doesn't show up.
That's happening because the images didn't load yet, so..
After hovering the first time on the buttons the other images (which supposed to be swapped with) start loading, and the next time you hover on the buttons after few seconds everything works fine.
The question is:
Is there anyway to make the other images (which will be swapped with the main ones) to pre-load when the whole page start loading, so that when someone hover on the buttons the images are already pre-loaded and cached?
I know this can be done by placing javascript code in the head to pre-load all the images you want before/while loading the page, so the images are already cached in the browser and ready to show when they are called.
But the thing is I don't want to use javascript in the head, and thats why I made the whole image swapping thing with CSS in first place.
Thanks in advance

