Files
dostavka_vodi/wp-content/plugins/robin-image-optimizer/assets/js/lazy-load.js
Anton.AE 3e42863ef5 Task_12281 (#1)
Co-authored-by: User A0264400 <a0264400@jarl.from.sh>
Reviewed-on: #1
Co-authored-by: Anton.AE <ab.an.ev@yandex.ru>
Co-committed-by: Anton.AE <ab.an.ev@yandex.ru>
2026-07-05 16:07:04 +03:00

12 lines
271 B
JavaScript

/*if ('loading' in HTMLImageElement.prototype && wbcr_robin.wpCompatibleLazy === 'yes') {
//loading="lazy" in WP >= 5.5
} else {
}*/
const el = document.querySelectorAll('img');
const observer = lozad(el, {
loaded: function (el) {
},
});
observer.observe();