Lazy loading does not work with masonry galleries
When using Masonry gallery block ( https://wordpress.org/plugins/block-gallery/ ) in the new Gutenberg editor, lazy loader breaks the gallery (all images are shown in a messy pile). It seems like block-gallery plugin uses JavaScript to calculate sizes and positions of images for Masonry gallery block. Since it does it on page load, it doesn't work properly with lazy loading. These scripts do recalculate positions and sizes when window gets resized so maybe a potential fix would be triggering of resize event but I'm not sure if it would be nice approach.
Hey @Janhouse,
thanks for the report. My plugin comes with an option that should help with masonry grids (the aspectratio option), but it seems that the width and height of the images are not included in the markup of the plugin. I will take a look at it to see if that can be fixed!
Best, Florian