A function uses the jquery.ajax()
method to get data from server and use it as return value.
If I use async=true the function returns prematurely empty value.
If I use async=false the wait for the function is too long. I tried toggle div showing spinning clock right before the request, but the div does not appear until the request is over.
Any advice on how not to lock the browser or show wait icon/symbol/text?