Thank you for your detailed response!
I understand the issue with calling the function twice. I'll adjust the logic to prevent an infinite loop.
I'm using IID because I'm storing the images in order (0, 1, 2, 3, 4), and I don't know another way to load them correctly. Do you have any suggestions for handling this in a structured way?
Currently, I'm testing with only five small images, so performance isn't an issue yet. However, I want to make sure the approach works efficiently for a larger number of images.
Would using UID instead of IID require me to change how I store and retrieve the images? If so, what would be the best way to keep track of them?
Also, thanks for the note on "Wait until previous actions complete." I'll test loading images with separate "On load success" events to see if that improves stability.
Appreciate your help!