function preLoadImg(url) { var img = new Image(); img.src = url; }