I will present 2 ways of preloading images with jQuery.
The first one is pre-loading images from an array, the second one is preloading image paths stored in a special attribute.
Pre-loading images means we want to load the images when the page is loading, so we can have them loaded when we want to use them. [...]