Optimole breaks srcset/sizes
-
I noted an issue on Optimole optimization within the Gutenberg Image block with a width and height set on the image block… the image was pixellated, and when I set it to exclude the optimization within Optimole settings, the img tag has no srcset. Now with Optimole enabled they are like:
<figure class="wp-block-image size-full"><a href="https://..."><img decoding="async" width="344" height="110" src="https://....jpg" alt="" class="wp-image-64683"></a><figcaption class="wp-element-caption" style="cursor: pointer;">caption</figcaption></figure>
With Optimole enabled – even though I have it set to exclude, I am seeing no WordPress-generated srcset/sizes as before:
<figure class="wp-block-image size-full is-resized"><a href="https://...."><img decoding="async" loading="lazy" src="https://....jpg" alt="" class="wp-image-64680" width="716" height="225" srcset="..." sizes="(max-width: 716px) 100vw, 716px"></a></figure>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Optimole breaks srcset/sizes’ is closed to new replies.