Beaver Builder photo module does not use srcset

Hi, I’m checking out beaver builder, and it seems that it does not use srcset?
I tried it out on the photo module with a photo of exactly the same aspect ration as the module (its a square) and there’s no srcset attribute on the images. This is quite bad for performance no?

The demo I made is here: http://5e6118284285f.demo.wpbeaverbuilder.com/demo/

Thats because you selected a cropped image. If you disable the cropping and let the module use the actual attachment it will be a srcset.

Sorry, but I tested it too and the srcset doesn’t appear. I set a Full width image that is 2000 px wide and the code looks like this:

<img class="fl-photo-img wp-image-29 size-full" src="http://5e9ab586bd41a.demo.wpbeaverbuilder.com/wp-content/uploads/sites/438801/2020/04/zdj-2000.jpg" alt="zdj-2000" itemprop="image" onerror="this.style.display='none'">

Please help.

Same problem here with BB Photo module and the image set to full size, srcset is not enabled.

photo module image set to full
Shared with Zight

Oh, you’re right, srcset is now enabled for my Photo module image.
Weird, i didn’t see it before re-checking, maybe i didn’t looked correctly…
Anyway, good thing it works, thanks for having check! :+1:

Its wordpress that adds the srcset stuff in the wp_get_attachment_image function.

If the image is not big enough or srcset has been disabled it will just return a regular image.

Ok, good to know, thank you.
In my case, it’s the same image: when i initially dropped it in the layout and checked, it had no srcset.
Then, after you posted your screenshot proving srcset was enabled, i checked again and saw it was also enabled on my image… weird.