img-lazyload.js 322 B

12345678910
  1. /* global Fluid, CONFIG */
  2. (function(window, document) {
  3. for (const each of document.querySelectorAll('img[lazyload]')) {
  4. Fluid.utils.waitElementVisible(each, function() {
  5. each.removeAttribute('srcset');
  6. each.removeAttribute('lazyload');
  7. }, CONFIG.lazyload.offset_factor);
  8. }
  9. })(window, document);