Process only some of the JS files (3 posts)

  1. constantine.johny
    Posted 3 years 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?


  2. pl9165
    Posted 3 years ago #

    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'......

  3. constantine.johny
    Posted 2 years 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..

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Autoptimize
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic