High performance and SEO friendly lazy loader for images (responsive and normal), iframes and more, that detects any visibility changes triggered through user interaction, CSS or JavaScript without configuration.
MIT License
17.56k
stars
1.73k
forks
source link
The library is getting stuck inside an infinite loop that keeps adding classes to the image #954
I have been trying to replace the current vannila lazy load script with this one, but I just cannot get it to work. I tried all possible combinations, even changing the attributes; the result is the same. I frankly never seen something like this, it appears as if it conflicts with something but there is really on the page that can do this.
Describe the bug
The library is getting stuck inside an infinite loop that keeps adding classes to the image.
To Reproduce
I cannot provide this, the configuration is plain and simple as:
In what environment (browser/device etc.) does this bug happen/not happen:
Latest Chrome.
Keywords help others to find this issue:
⚠️ Search for existing open/closed issues/discussions before you report the issue.
⚠️ If you do not provide enough information to reproduce your bug. We won't be able to work on the issue. In most cases just providing a fraction of your code is not enough!
I have been trying to replace the current vannila lazy load script with this one, but I just cannot get it to work. I tried all possible combinations, even changing the attributes; the result is the same. I frankly never seen something like this, it appears as if it conflicts with something but there is really on the page that can do this.
Describe the bug The library is getting stuck inside an infinite loop that keeps adding classes to the image.
To Reproduce I cannot provide this, the configuration is plain and simple as:
The above is inserted at the end of the document (just before the closing body tag).
The image tag:
Steps to reproduce the behavior: I have no idea how you can reproduce, try to use the above.
What is the expected behavior: Lazy loading without such bug!?
What happened instead: An infinite loop that keeps adding classes to the image. Result:
<img width="1400px" height="160px" src="..." data-originalsizes="auto" data-originalset="... 320w, ... 576w" class="page-header-image lazy lazyautosizes lazyloading lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading ls-is-cached lazyloaded lazyautosizes lazyloading" alt="....">
In what environment (browser/device etc.) does this bug happen/not happen: Latest Chrome.
Keywords help others to find this issue:
⚠️ Search for existing open/closed issues/discussions before you report the issue. ⚠️ If you do not provide enough information to reproduce your bug. We won't be able to work on the issue. In most cases just providing a fraction of your code is not enough!