Why does jQuery ajax cause a horrible memory leak on Firefox & other browsers?
jsfiddle: http://jsfiddle.net/Rqfz7/
If you run this in a browser like Firefox, this causes the memory to climb. Has anyone else seen this? Is there a way to stop the memory leak with jQuery ajax? Thanks
$.ajax({
url: "http://ws.geonames.org/searchJSON",
dataType: "jsonp",
data: {
featureClass: "P",
style: "full",
maxRows: 12,
name_startsWith: "M"
},
success: function( data ) {
setInterval(function() {
get_some_stuff();
}, 1000);
load_count = load_count + 1;
$('body h1').text('load_count: ' + load_count);
}
})