it seems that the data-sizes attributes added to img by bricks is always the biggest image sizes selected, independtly of the viewport size.
Result seems to be browser not selecting the right srcset
Any idea if im doing something wrong ?
it seems that the data-sizes attributes added to img by bricks is always the biggest image sizes selected, independtly of the viewport size.
Result seems to be browser not selecting the right srcset
Any idea if im doing something wrong ?
Hi Heave,
Can you please clarify what you mean by “data-size attribute” and provide examples if possible?
sorry it is “sizes” not data sizes
To my knowledge, we use the native WordPress functions for responsive images.
For fun, you can switch to a default theme (twentytwenty…) and compare the sizes attribute for the same image: it will probably be identical (depending on the selected image size).