code: function onProgress( e  ) {
    // change class if the image is loaded or broken
    e.img.parentNode.className = e.isLoaded ? '' : 'is-broken';
    // update progress element
    loadedImageCount++;
    updateProgress( loadedImageCount );
  }
docs: triggered after each item is loaded