So I have this piece of code that loops through an array and load images and notify when the images is loaded.
for (var i = 0; i < arr.length; i++) {
One part of the problem: The event is not called onload, but load.
onload
load
imageObj.addEventListener('load', function() { /* ... */ }, false);
Other than that, since i changes outside of the event listener function, you need a closure.
i