The reason why "Loading" is stuck there is because .load() is an ajax call and although returns a 400 response, does not actually reload the page.
What you can do is make use of jQuery load() callback function like
$("...").load("yourURL", function (responseText, textStatus, req) {
if (textStatus == "error") {
//do something here, like redirect the page for example
}
});