We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<picture> <source media="(max-width: 500px)" srcset="/img/1_small.png"> <img src="/images/1x1.png" class="lazyload" data-src="/img/1.jpg" style="width: 100%;" height="100%"> </picture>
How to make 1_small.png lazyload?
The text was updated successfully, but these errors were encountered:
Попробовать заменить в 120 строке: } else { на } else if ("source" === entry.target.tagName.toLowerCase()) { if (srcset) { entry.target.srcset = srcset; } } else {
} else {
} else if ("source" === entry.target.tagName.toLowerCase()) { if (srcset) { entry.target.srcset = srcset; } } else {
и в 145 строке: } else { на } else if ("source" === image.tagName.toLowerCase()) { if (srcset) { image.srcset = srcset; } } else {
} else if ("source" === image.tagName.toLowerCase()) { if (srcset) { image.srcset = srcset; } } else {
Sorry, something went wrong.
Doesn't seem like it does. Any chance we can get support for this?
Update: if anyone else comes across this - here's an alternative: https://github.com/verlok/vanilla-lazyload
No branches or pull requests
<picture> <source media="(max-width: 500px)" srcset="/img/1_small.png"> <img src="/images/1x1.png" class="lazyload" data-src="/img/1.jpg" style="width: 100%;" height="100%"> </picture>
How to make 1_small.png lazyload?
The text was updated successfully, but these errors were encountered: