mirror of https://github.com/jkjoy/sunpeiwen.git
11 lines
322 B
JavaScript
11 lines
322 B
JavaScript
/* global Fluid, CONFIG */
|
|
|
|
(function(window, document) {
|
|
for (const each of document.querySelectorAll('img[lazyload]')) {
|
|
Fluid.utils.waitElementVisible(each, function() {
|
|
each.removeAttribute('srcset');
|
|
each.removeAttribute('lazyload');
|
|
}, CONFIG.lazyload.offset_factor);
|
|
}
|
|
})(window, document);
|