constantine.johny
Member
Posted 1 year ago #
Hi, some plugins stop working when "Optimize Javascript files" is enabled. Is there a way to optimize all JS files except the ones not working? "Add try-catch wrapping" doesn't help. All I want to do is optimize all JS files except one that stops working after optimization. Is it possible?
http://wordpress.org/extend/plugins/autoptimize/
Yeah, It is possible. Open autoptimizeScripts.php in \classes, and add the JS files that you don't want to pack it in private $dontmove = array('document.write','show_ads.js','google_ad'......
constantine.johny
Member
Posted 10 months ago #
Didn't help.
The plugin "Lightbox-plus" stops working after enabling Optimize JS. I added the .js files to the $donmove variable, but still not working..