File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2222<?php if ($ block ->getIsJavascriptLazyLoadMethod ()) { ?>
2323<script data-rocketjavascript="false">
2424 window.mfLazyUtilLoad = setInterval(function() {
25- if (window.scrollY > 100 || isMfLazyPixelImageInAViewPort(document.querySelector('main img[src$="pixel.jpg"]'))) {
25+ if (window.scrollY > 100 || isMfLazyPixelImageInAViewPort(document.querySelector('main img[src$="pixel.jpg"], main .mflazy-background-image '))) {
2626 loadLazyLoad();
2727 }
2828 }, 10);
2929
3030 document.addEventListener("DOMContentLoaded", function () {
31- if (isMfLazyPixelImageInAViewPort(document.querySelector('main img[src$="pixel.jpg"]'))) {
31+ if (isMfLazyPixelImageInAViewPort(document.querySelector('main img[src$="pixel.jpg"], main .mflazy-background-image '))) {
3232 loadLazyLoad();
3333 } else {
3434 document.addEventListener('scroll', loadLazyLoad, { once: true });
You can’t perform that action at this time.
0 commit comments