docs/dist/responsive-lazyload.es.js
function loadImage(event) {
  var image = event.target;

  // Swap in the srcset info and add an attribute to prevent duplicate loads.
  image.srcset = image.getAttribute('data-lazyload');
  image.setAttribute('data-loaded', true);
}
function loadImage(event) {
  var image = event.target;

  // Swap in the srcset info and add an attribute to prevent duplicate loads.
  image.srcset = image.getAttribute('data-lazyload');
  image.setAttribute('data-loaded', true);
}
function loadImage ( event ) { var image = event . target ; // Swap in the srcset info and add an attribute to prevent duplicate loads. image . srcset = image . getAttribute ( 'data-lazyload' ) ; image . setAttribute ( 'data-loaded' , true ) ; }
This almost seems too easy, but we simply swap in the correct srcset.
@param  {Event} event the triggered event
@return {Void}
This almost seems too easy but we simply swap in the correct srcset .