Compatibility issue with picture tag (shortpixel)
-
Hi,
When activating shortpixels webp deliverance feature through the <PICTURE> tag syntax, the product variation selector stops changing the image associated with the variation.
I believe the problem is that the source tags are not updated with the variation selector change…
<picture src"https://mydomain.com/1.jpg" srcset="https://mydomain.com/1.jpg 600w"> <source srcset="https://mydomain.com/1.jpg 600w" type="image/webp"> <source srcset="https://mydomain.com/1.jpg 600w" type="image/jpeg"> <img src"https://mydomain.com/1.jpg" srcset="https://mydomain.com/1.jpg 600w"> </picture>
…becomes…
<picture src"https://mydomain.com/2.jpg" srcset="https://mydomain.com/1.jpg 600w"> <source srcset="https://mydomain.com/1.jpg 600w" type="image/webp"> <source srcset="https://mydomain.com/1.jpg 600w" type="image/jpeg"> <img src"https://mydomain.com/2.jpg" srcset="https://mydomain.com/2.jpg 600w"> </picture>
….which means the browser still displaying the 1.jpg since that’s what it sees in the <source> tag.
Would it be possible for you to add this feature in the free and/or the pro version?
Regards
woomigrating
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Compatibility issue with picture tag (shortpixel)’ is closed to new replies.