siteorigin / so-widgets-bundle

The SiteOrigin Widgets Bundle gives you all the elements you need to build modern, responsive, and engaging website pages. Using the Widgets Bundle, you can quickly and effortlessly add buttons, sliders, heroes, maps, images, carousels, features, icons, and so much more.
https://siteorigin.com/widgets-bundle/
94 stars 64 forks source link

masonry widget: Responsive images/proper image sizes #549

Open strarsis opened 7 years ago

strarsis commented 7 years ago

Currently the masonry widget uses images in full size or very large size, much larger than necessary. This dramatically increases bandwidth usage and load time and the images also first jump around while rearranging.

Ideally the JavaScript for masonry determines the right/roughly right size and provides it in sizes-attribute so the browser can pick the right image file (srcset already provided by WordPress).

matthiaswagnerwy commented 6 years ago

maybe you could provide a quick fix with a filter for the image size in the template file? so we could at least define the size in our own functions.php?