HI @platoscave
I’m afraid I can’t help you with this because I am a Linux user.
Just out of curiosity, in what version of IE you are testing the site?
Okay, I have asked you about this before and you fixed it last time, so maybe it will be the same issue as last time? I am using IE 11 on Windows 10.
Thanks for your time.
Hi Ante,
We have checked out the code today and found that the src attribute is being set on the page load on Chrome, and the IntersectionObserver is not used.
This is the relevant snippet from the JavaScript side found in wpp.min.js:
(f.images || f.videos) && function() {
if (e = b.querySelectorAll('[loading="lazy"]'), "loading" in HTMLImageElement.prototype) e.forEach(function(e) {
e.src = e.dataset.src
});
else if ("IntersectionObserver" in a) {
var r = new IntersectionObserver(function(e, t) {
e.forEach(function(e) {
It enters in the first if, which sets the src attribute. On IE11 there is no loading in the prototype of the Image element, no IntersectionObserver either. Hence it falls back on the other conditions.
Currently this is broken on modern browsers like Chrome/Firefox because of the first if we mentioned.
Can you please take a look?