We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

Leech on 07/21/06


Tagged

images preloader


Versions (?)


Who likes this?

16 people have marked this snippet as a favorite

jonhenshaw
luman
xaviaracil
mate
panatlantica
damarev
trickychicken
visualAesthetic
Hirmine
eunjoo1984
cynic68
manub
vali29
willgarrison
tcol
SpinZ


Image Preloader


Published in: JavaScript 


URL: http://www.dithered.com/javascript/image_preloader/index.html

  1. // Image Preloader v1.0.1
  2. // documentation: http://www.dithered.com/javascript/image_preloader/index.html
  3. // license: http://creativecommons.org/licenses/by/1.0/
  4. // code by Chris Nott (chris[at]dithered[dot]com)
  5.  
  6.  
  7. function preloadImages() {
  8. if (document.images) {
  9. for (var i = 0; i < preloadImages.arguments.length; i++) {
  10. (new Image()).src = preloadImages.arguments[i];
  11. }
  12. }
  13. }

Report this snippet 

You need to login to post a comment.