Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Sounds like the justified images needs images loaded to know how to justify them, but when lazyload is active it fails doing so as .. the images are not loaded yet. Afraid the only solution (barring JS magic requiring development) would to not lazyload (on pages with justified galleries)?

    Thread Starter bergblume

    (@bergblume)

    Ok, how can I exclude Justified galleries from AO lazy loading?
    the shortcode of Justified galleries looks like that

    [gallery ids="388,11599,11598,10359,10187,10154" orderby="rand"]

    • This reply was modified 3 years, 9 months ago by bergblume.
    • This reply was modified 3 years, 9 months ago by bergblume.
    • This reply was modified 3 years, 9 months ago by bergblume.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    AO does not know about shortcodes, but in the nearby Autoptimize 2.9 you can disable lazyload (and other options) on a per-page basis, so you would do so on every page you added gallery shortcode?

    If you want you can download AO29 beta here to install it instead of 2.8.4 and test that new feature (first enable it in the Autoptimize settings once and then go to the page(s) editing screen to disable lazyload in this case)?

    Thread Starter bergblume

    (@bergblume)

    what is the class of justified gallery that I have to exclude? Pls see
    https://justifiedgallery.com/ for example gallery with classes. I do not have 2.9 yet – but I think I can do it also with class exclusions in prior versions of AO.
    Can you pls. name me the class to exclude.
    thank you!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    No classname in the <img tag, but try data-jg-srcset maybe?

    Thread Starter bergblume

    (@bergblume)

    Perfect! that worked like a charm!
    thank you so much! You can close this topic!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    happy all is well bergblume, feel free to leave a review of the plugin and support here! ??

    frank

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem with Justified Gallery Plugin and lazy load enabled’ is closed to new replies.