Skip to content

Instantly share code, notes, and snippets.

@javascripter
Created November 3, 2008 03:14
Show Gist options
  • Save javascripter/21788 to your computer and use it in GitHub Desktop.
Save javascripter/21788 to your computer and use it in GitHub Desktop.
(function () {
var last = null;
(function request() {
with (new XMLHttpRequest()) {
open('get', location.href, true);
send(null);
onload = function () {
if (!last || last == this.responseText) {
last = this.responseText;
setTimeout(request, 100);
} else {
location.reload(true);
}
};
}
})();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment