Closed Hoargarth closed 4 months ago
PR for this☝🏻
Hoargarth is correct, although $lazyloading is set to '', the $originalTag is already created with the loading="lazy" attribute. PR would be great
Update, a fix is underway already. I hope to release things today.
I'm closing this ticket, because it should already be fixed.
Version:
0.4.0
Feature: Disable lazyloading withfetchpriority="high"
Expected behaviour: Adding
fetchpriority="high"
to an image, will prevent addingloading="lazy"
to the output imageActual behaviour: Adding
fetchpriority="high"
doesn't do anythingSolution: The
preg_replace
which adds lazyloading is done before the check for an existingfetchpriority="high"
. https://github.com/yireo/Yireo_NextGenImages/blob/master/view/frontend/templates/picture.phtml#L12 Line 12 should be moved ater the condition in line 19Related issue: https://github.com/yireo/Yireo_NextGenImages/issues/52