Title: Unable to Exclude Plugin
Last modified: August 30, 2016

---

# Unable to Exclude Plugin

 *  Resolved [fluxappeal](https://wordpress.org/support/users/fluxappeal/)
 * (@fluxappeal)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/unable-to-exclude-plugin/)
 * I recently activated Autoptimize (which is giving me good results so far!), however,
   it breaks one of my plugins: Interactive World Maps. I deactivated and it seems
   related to the javascript optimization. I tried entering the plugin file path
   in the “exclude scripts,” as well as entering each script individually – no affect.
 * Settings that broke map:
    opt: HMTL, CSS, JS inline css save aggregated script/
   css: checked
 * What I excluded:
    wp-content/plugins/interactive-world-maps, wp-content/plugins/
   interactive-world-maps/js/responsive.js, wp-content/plugins/interactive-world-
   maps/js/settings.js, wp-content/plugins/interactive-world-maps/js/shortcode.js,
   wp-content/plugins/interactive-world-maps/js/visual-composer.js,wp-content/plugins/
   interactive-world-maps/documentation/js/jquery.1.6.4.js,wp-content/plugins/interactive-
   world-maps/documentation/js/jquery.easing.js,wp-content/plugins/interactive-world-
   maps/documentation/js/jquery.scrollTo-1.4.2-min.js,wp-content/plugins/interactive-
   world-maps/documentation/js/jquery.script.js
 * For the time being, I’ve disabled the JS option. Any idea how to exclude the 
   map plugin?
 * Link to page with map:
    [http://www.arthurtaussig.com/photographs/the-museum-project/map-of-museums/](http://www.arthurtaussig.com/photographs/the-museum-project/map-of-museums/)
 * Thank you!
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/unable-to-exclude-plugin/#post-6195546)
 * well, when looking at the HTML source of that page, I see no link to any JS in/
   wp-content/plugins/interactive-world-maps at all. based on the source code, the
   map is actually loaded using google maps, with a large block of inline JS that
   starts with;
 *     ```
       var ivalue_4 = new Array();
       google.load('visualization', '1', {packages: ['geochart']});
       function drawVisualization() {
       var data = new google.visualization.DataTable();
       ```
   
 * so you could exclude that inline JS by adding “drawVisualization” (without the
   quotes) to the comma-seperated JS-exclusion list. alternatively you could disable
   optimization for that page specifically using the API’s autoptimize_filter_noptimize-
   filter, there’s example code for that in [autoptimize_helper.php_example](http://plugins.svn.wordpress.org/autoptimize/trunk/autoptimize_helper.php_example).
 * hope this helps,
    frank
 *  Thread Starter [fluxappeal](https://wordpress.org/support/users/fluxappeal/)
 * (@fluxappeal)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/unable-to-exclude-plugin/#post-6195644)
 * I had been confused about why no js was showing in the source code, apparently
   those resources are hosted by Google.
 * Adding the “drawVisualization” to the JS-exclusion was not successful, but I 
   was able to run the noptomize filter for the page through the helper plugin and
   subsequently though my child functions with success.
 * Unfortunately, the plugin messes up my galleries and slideshows, which are the
   two most important features of the site, and it just doesn’t provide a significant
   enough speed improvement to make it worthwhile trying to get it to play nicely.
 * Thank you again for your assistance Frank.
 *  Thread Starter [fluxappeal](https://wordpress.org/support/users/fluxappeal/)
 * (@fluxappeal)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/unable-to-exclude-plugin/#post-6195645)
 * Marking resolved.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Unable to Exclude Plugin’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [exclude plugin](https://wordpress.org/support/topic-tag/exclude-plugin/)

 * 3 replies
 * 2 participants
 * Last reply from: [fluxappeal](https://wordpress.org/support/users/fluxappeal/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/unable-to-exclude-plugin/#post-6195645)
 * Status: resolved