Lazy load and masonry layout
-
Hello David and thank you for the great plugin,
I am trying to build a searchable image database. Thanks to the very complete documentation it all went quite fast. You can check the result here:
https://brand.noboedu.com/media/
(id: demo, pw: demo, you can search “2016” to find the test images)Now I wanted to style the page with a masonry style, so I used column-count and column-gap to that. But this CSS style actually loads the images from top to bottom which results in a very chaotic loading.
To prevent this problem I installed the plugin “Dominant Colors Lazy Loading” which replaces the image with a color frame (svg) before it loads. The plugin works well with regular wordpress galleries and regular images, but doesn’t work with mla gallery. Then I used “mla_alt_shortcode=gallery” but it still didn’t make the trick.
You can see the plugin in action on this other page: https://brand.noboedu.com/test-gallery/
Interesting enough you will see that this test page has 4 galleries, #1 is a regular wordpress gallery, #2 and #3 is a mla gallery with “mla_alt_shortcode=gallery”, #4 is a mla gallery without anything else. Still ALL the images of ALL 4 galleries lazy load well using the plugin. But if I remove the regular gallery from the page, then the images from the mla galleries won’t lazy load.
I’ve been searching the documentation of both plugins all night and tried countless test. I thing masonry layout and lazy load would look really cool with the mla gallery. If you have any idea why this doesn’t work that would be wonderful. Otherwise I’ll just give up on the layout and style the page differently.
Thank you again for the plugin.
- The topic ‘Lazy load and masonry layout’ is closed to new replies.