• Resolved fluxappeal

    (@fluxappeal)


    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/

    Thank you!

    https://wordpress.org/plugins/autoptimize/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Frank Goossens

    (@futtta)

    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.

    hope this helps,
    frank

    Thread Starter fluxappeal

    (@fluxappeal)

    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

    (@fluxappeal)

    Marking resolved.

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

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