• Enabling the lazyload function in optimization plugins such as litespeed cache or smush plugin will widen the spacing of the grid. Below is a screenshot.

    https://paste.pics/de96444e50d434e4ee1ec7ab7a779c67

    I set the main page to recent posts and enabled the lazyload function in the smush plugin, but there was an error so I changed the plugin but the same error occurs. Is there any solution to this error?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @blackdeth73,

    Thank you for reaching out,

    Actually, I didn’t see any error in your screenshot. If you want to load images on masonry view, the lazyload should be loaded before the “Masonry” script, or disable the lazyload. It’s a bit hard to manage it, so in this case, you should contact an expert familiar with the code and performance of the websites. The priority of the javascript is essential to load your web page correctly with lazyload.

    To solve this issue, there are two solutions:

    1. Use the exclusions options for lazyload to avoid running lazyload for masonry blog posts > featured images by adding classes. Please check this screenshot: https://i.postimg.cc/q7ySBs4c/image.png(I’ll choose this.).

    2. Use another style for the blog(like a list style or a simple grid with equal height for each post).

    I hope that helps.
    Best Regards

    Thread Starter blackdeth73

    (@blackdeth73)

    @skalanter

    thank you for the reply. I’ll try to apply what you said first. Where can I find the settings in the screenshots you provided me?

    Hello @blackdeth73,

    Thank you for your report,

    You can find those settings on WP Dashboard > Appearance > Customizer > Blog > Blog Entries. Please check this screenshot: https://i.postimg.cc/J7NVBy1H/image.png.

    Best Regards

    Thread Starter blackdeth73

    (@blackdeth73)

    @skalanter

    thank you for telling me. What I wanted to know is the “lazy load setting” corresponding to number 1 of the answer you gave. Is this the setup of oceanwp Pro?

    https://i.postimg.cc/q7ySBs4c/image.png

    Hello @blackdeth73,

    Unfortunately not, that’s not in the theme.
    It’s in your third-party plugin. Please get in touch with your third-party plugin author. Maybe they have a solution that we are not aware of.

    Best Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error in grid layout widening when using lazyload’ is closed to new replies.