I needed a smooth fadeIn effect after all images had been loaded in a specific element.
I solved the problem by incrementing a load counter and executing a function when the counter reaches the number of elements to load.
load_counter = 0;
$.each(my_images, function(i, item) {
$(item).load(function() {
load_counter ++;
if (load_counter == my_images.length) {
// all items have loaded
$("#my_element").fadeIn();
}
})
})