I wrote the function below in order to send multiple get requests.
$( document ).ajaxError(function( event, jqxhr, settings, thrownError ) { console.log(\'e