0

When user clicks on a button i load an array of images (there could be from 1 to 1000...). Is it possible somehow detect when last image is loaded?

user1692333
  • 2,461
  • 5
  • 32
  • 64

1 Answers1

0

You can define and onload event for each image and in the event increment a counter until the last one is loaded, which would be the length of your array.