How can I redirect users to the mirror-site that is nearest and fastest for them using Javascript and possible AJAX?
Is there a way using Javascript to make a HTTP request to each of the servers (mirror sites), then redirect to the one which is closest and/or fastest for the end-user? I would prefer using Javascript to perform the redirect, rather than for example geo-aware DNS redirects.
I have several HTTP severs for a online web game freeciv.net distributed around the world hosted on Amazon EC2, and would like to redirect end-users to the server which will be fastest for them.