Check if all images are loaded

I’m trying to create a dynamic image gallery. Is it possible to check if all the images are loaded? If so, anyone has a hint?