I'm building a jstree tree viewer which ultimately will be behind a firewall and I noticed that my script is calling ga.js from an anonymous function in my top level script.
So how do I disable this an an elegant way without digging through all the JavaScript? I don't think the requests will be satisfied when requested, but it will keep asking for it every time the page loads, which is a nuisance.
This is my code, other than the jquery 1.10, jquery cookie and jtree pre 1.0 boilerplate.
$("#myTree")
.jstree({
"json_data" : {
"ajax" : {
"type" : "GET",
"url" : "xxxxxxx.cgi",
"data" : function (n) { return { id : n.attr ? n.attr("id") : 0 }; },
"success": function (new_data) { return new_data; }
"progressive_render" : true
},
},
"plugins" : [ "themes", "json_data", "ui", "checkbox"],
});
ga.jsin it?