Preloading Images Via JavaScript
Example 1: Using JavaScript's appendChild() Method

Images are preloaded below via JavaScript appendChild() method. CSS is set to hide the div in which they appear.

Wrong Way: Changing A Single HTML img src Attribute
Dumb Way: Using HTML And CSS
Example 2: Using jQuery And document.ready()
Preloading Images Via JavaScript