The actual product images in the image tags are located within the data-src attribute, not the src attribute. However, in the code below, it checks the src attribute and immediately breaks out of the loop, This leads to the picture tag not being generated for all the products on the list page.
As a result, fails to collect the actual images from the data-src attribute, and it falls into the subsequent code, leading to an immediate return. Therefore, no picture tags are generated for any of the images on the list page.
catalog listing page
here are the img tags on the list page:
The actual product images in the image tags are located within the data-src attribute, not the src attribute. However, in the code below, it checks the src attribute and immediately breaks out of the loop, This leads to the picture tag not being generated for all the products on the list page.
https://github.com/yireo/Yireo_NextGenImages/blob/c1f26f7f9fcc0cb949fa55a18a730ad5caf97b0a/Util/HtmlReplacer.php#L300
As a result, fails to collect the actual images from the data-src attribute, and it falls into the subsequent code, leading to an immediate return. Therefore, no picture tags are generated for any of the images on the list page.
https://github.com/yireo/Yireo_NextGenImages/blob/c1f26f7f9fcc0cb949fa55a18a730ad5caf97b0a/Util/HtmlReplacer.php#L135