I have a situation where i have to return false if ajax request does not return within 1 second. But process the response after the request has been completed. Using Ajax timeout does not work for me because, it cancels the request after that time. But i want the response even if it takes long time.
Example:
function call(){
  ajax.request(...)
     if(does not respond in 1 second)
        immediately return false and wait for response
     else
        return response
}
 
    