I’ve a web application which calls a webservice with ajax. This webservices returns me the configuraiton for my app, so the ajax call needs to be set at {async:false}.
Everything works fine when my server is up, but in the case it’s not, my browser just freezes. Even if I set a timeout in my ajax call setup.
I’ve a error handler function which is never called even if the timeout is passed.
Someone has ever been confronted to that situation ?
@Edit : My problem can be solved by doing asynchronous call
As the browser is single threaded it would be better to process the config
returned in the callback success, and handle any errors in the error callback.