2025-2-26-fixed
This commit is contained in:
10
themes/fluid/source/js/img-lazyload.js
Normal file
10
themes/fluid/source/js/img-lazyload.js
Normal file
@ -0,0 +1,10 @@
|
||||
/* 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);
|
||||
Reference in New Issue
Block a user