Quantcast
Channel: WordPress.org Forums » [Autoptimize] Support
Viewing all articles
Browse latest Browse all 14094

Frank Goossens on "[Plugin: Autoptimize] Unable to Exclude Plugin"

$
0
0

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


Viewing all articles
Browse latest Browse all 14094

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>