Skip to content

Instantly share code, notes, and snippets.

@gawaooooo
Created August 3, 2012 05:58
Show Gist options
  • Save gawaooooo/3244941 to your computer and use it in GitHub Desktop.
Save gawaooooo/3244941 to your computer and use it in GitHub Desktop.
【jQuery】image preload
// 画像の先読み
var imageList = ['top/a.png', 'top/b.png', 'top/c.png'],l = imageList.length, i = 0;
for(; i < l; i++) {
$('<img/>')[0].src = imageList[i];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment