We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b1dc65 commit 9289c07Copy full SHA for 9289c07
Plugin/BlockPlugin.php
@@ -77,13 +77,15 @@ public function afterToHtml(\Magento\Framework\View\Element\AbstractBlock $block
77
78
$html = str_replace($pixelSrc, $tmpSrc, $html);
79
80
- $html = preg_replace('#<img(?!.*mfdislazy).*([^>]*)(?:\ssrc="([^"]*)")([^>]*)\/?>#isU', '<img ' . $pixelSrc .
+ $html = preg_replace('#<img([^>]*)(?:\ssrc="([^"]*)")([^>]*)\/?>#isU', '<img ' .
81
' data-original="$2" $1 $3/>
82
<noscript>
83
<img src="$2" $1 $3 />
84
</noscript>
85
', $html);
86
87
+ $html = str_replace(' data-original=', $pixelSrc . ' data-original=', $html);
88
+
89
$html = str_replace($tmpSrc, $pixelSrc, $html);
90
$html = str_replace(self::LAZY_TAG, '', $html);
91
0 commit comments