examples/images/progress/progress.js
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 );
}
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 );
}
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 ) ; }
triggered after each item is loaded
triggered after each item is loaded