I have memory leakage when using Ajax, where Firefox memory usage increases after each ajax call.
I use jQuery 1.10.2.
Are there any workarounds/fixes for this bug?
Edit: I use $.post not $.ajax.
Any $.post function is causing the leak:
$(".Button1").on("click", function(){
$.post(document.location, "data1=1", function(data) {
$("#mainDiv").html(data);
});
});
This is an example code, every time I click on the button memory usage will increase.
Edit2: I have tested this on Chrome too and same problem, so the problem is with jQuery.
But the problem still exists.
This is more noticable when I run the Ajax function every 10 seconds using setInterval, where memory insanely increases.