|
1
|
/*if ('loading' in HTMLImageElement.prototype && wbcr_robin.wpCompatibleLazy === 'yes') {
|
|
2
|
//loading="lazy" in WP >= 5.5
|
|
3
|
} else {
|
|
4
|
}*/ |
|
5
|
|
|
6
|
const el = document.querySelectorAll('img'); |
|
7
|
const observer = lozad(el, { |
|
8
|
loaded: function (el) { |
|
9
|
}, |
|
10
|
}); |
|
11
|
observer.observe(); |
|
12
|
|