Skip to content

Instantly share code, notes, and snippets.

@tav
Created October 25, 2009 14:03
Show Gist options
  • Select an option

  • Save tav/218074 to your computer and use it in GitHub Desktop.

Select an option

Save tav/218074 to your computer and use it in GitHub Desktop.
<script type="text/javascript" src="http://eu.live.app.com/info.js"></script>
<script type="text/javascript" src="http://usa.live.app.com/info.js"></script>
<script type="text/javascript">
var closest_cluster = null;
$.getJSON('http://eu.live.app.com/ping.js?__callback__=?', function (data) { if (!closest_cluster) closest_cluster = data.cluster_id });
$.getJSON('http://usa.live.app.com/ping.js?__callback__=?', function (data) { if (!closest_cluster) closest_cluster = data.cluster_id });
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment