My problem is that my main page loads some slow asp pages into my divs via jQuery:
$("#content").load("really_slow.asp");
But if I try to go to another page of my site by clicking the link before the ASP page is complete, it will not let me go until the download is complete.
I tried several ways, but nothing works. I tried something like this:
var request = $.ajax({
type: 'GET',
url: 'really_slow.asp',
success: function(result){
$("#content").html(result);
}
});
$("a").click(function() {
request.abort();
});
no difference...
source
share