Use the <iframe> wrapper to wrap your pages. Then, when you have an AJAX request, pass the request to the shell and go to <iframe> . Doing this will give you the opportunity to have a completely asynchronous request, while maintaining application responsiveness.
Of course, you also do not change the address bar and effectively kill your SEO, but this is a compromise for having a bad architecture. The fact that click tracking takes about a second is just awful. Perhaps you should run it on an asynchronous thread on the server and just transfer the data to the client in a separate thread ( System.Threading ). This will alleviate the problems you are facing.
Otherwise, you may have asynchronous , reliable, or not hacked together . Choose any two.
EDIT
Not bad, you can also run your AJAX request as a popup:
window.open(url,'ajax','height=0,width=0');
This is not a good idea, but it will work.
mattbasta
source share