The jQuery.imgpreload plugin lets you preload images before and after the DOM has loaded.