Fix Conflict with YITH WooCommerce Zoom Magnifier

If you use the YITH WooCommerce Zoom Magnifier plugin, you may experience a conflict with JavaScript minification and LazyLoad. Here’s how to solve it.

Exclude JS-File from Minification

If you have enabled JS minification, you must exclude this file URL from minification:


Disable LazyLoad for Variable Products

If the Zoom magnifier does not seem to work correctly for variable product images when LazyLoad is enabled, disable LazyLoad on those specific pages only. (This feature is available as of WP Rocket 2.5.)

Programatically Disable LazyLoad for Product Pages

In WP Rocket versions prior to 2.5 you must programatically disable LazyLoad for product pages with a custom helper plugin.

📥  Download (.zip):  WP Rocket | No LazyLoad for WooCommerce Product Images
Developers: You can find the code for this plugin on GitHub.