Skip to content

Commit 2482efa

Browse files
authored
Disable Owl Slider LazyLoad
1 parent 7da589d commit 2482efa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Plugin/BlockPlugin.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ public function afterToHtml(\Magento\Framework\View\Element\AbstractBlock $block
8383
$html = str_replace($tmpSrc, $pixelSrc, $html);
8484
$html = str_replace(self::LAZY_TAG, '', $html);
8585

86+
/* Disable Owl Slider LazyLoad */
87+
$html = str_replace(
88+
['"lazyLoad":true,', '"lazyLoad":true,', 'owl-lazy'],
89+
['"lazyLoad":false,', '"lazyLoad":false,', ''],
90+
$html
91+
);
92+
8693
return $html;
8794
}
8895

0 commit comments

Comments
 (0)