Autoptimize crash all my galleries

[ad_1]

First and foremost try to identify what is breaking the gallery by just disabling CSS or JS or HTML or Image optimization (incl. lazyload). Based on that we can see what the next steps need to be šŸ™‚

frank

I tried all three options:

  • Optimize JavaScript Code? (disabled and clead cache) ā€“ nothing
  • Optimize CSS Code? (disabled and clead cache) ā€“ nothing
  • Optimize HTML Code? (disabled and clead cache) ā€“ nothing

This is default gutenberg gallery, without pluginsā€¦

I resolved layout problem when i disabled ā€˜Remove WordPress block CSSā€™ in Extra tab, but there is still a problem when i click on an image, i canā€™t see full-size because of the caption text vertical orientation :((

i also added ā€˜?ao_noptimize=1ā€™ and gallery working like a charm šŸ™

  • This reply was modified 2 hours, 29 minutes ago by schleewoon.

I fixed all :)))

after 4h I found the solution, I just disabled these two options in Autoptimize:Ā 

ā€“ ā€˜Remove WordPress block CSSā€™ in the Extra tab

ā€“ ā€˜Lazy-load images?ā€™ in the Images tab

and now all theĀ galleriesĀ are working like a charm.

Thank you and sorry for this Sunday hassle šŸ™‚

BestĀ 

no worries @schleewoon šŸ™‚

re. ā€œremove wordpress block CSSā€; that one is off by default and when youā€™re using blocks (such as wp-gallery) you should indeed not activate that option.

re. lazyloading; you could try excluding those images from being lazyloaded?

enjoy your Sunday!
frank

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer