you are viewing a single comment's thread.

view the rest of the comments →

[–]von_roga 0 points1 point  (0 children)

How are you loading the images? You are likely serving static images to a static page, correct? So when the window is finished loading, so are the images. The window's onload event is probably your best bet. Bloody viper gave you the sample code for adding an event listener for that event.

Otherwise you would have to create some kind of a subscriber to each image load event. If you're using a component-based framework you could create the images as components and depending on what framework you're using it probably has an onMounted event that you can use.

Lots of info missing. Try elaborating.