Preloading images and executing code only after all images have loaded 十二月 31, 2015 http://www.javascriptkit.com/javatutors/preloadimagesplus.shtml http://fragged.org/preloading-images-using-javascript-the-right-way-and-without-frameworks_744.html