Skip to main content
gamedev.net
🔒 Locked

Javascript Image Preloader

Started by Puzzler183 Oct 10, 2002 at 5:15 PM 1 replies 450+ views
Original Post
Puzzler183
Puzzler183
Will the following source load those images properly?
  
var imagePre = new Image();

imagePre.src = "logo.png";
imagePre.src = "link1.png";
  
Under construction: my place.
daerid
daerid
I believe so. I was always taught to make a new image object for each pre-loaded image.

Although, now that I think about it, it really shouldn''t matter :\
daerid@gmail.com
Puzzler183
Puzzler183
Thats what I''ve seen and I don''t really have a good way to test this way...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.