The jQuery imgpreload plugin allows you to preload images before and/or after the DOM is loaded.