Fix lack of loading spinner on non-ajax calls.