function load() {
	var currentVersion = document.getElementById('version').getAttribute('content');

	var client = new XMLHttpRequest();
	client.open('GET', 'index.html');
	client.onreadystatechange = function () {
		var parser = new DOMParser();
		var doc = parser.parseFromString(client.responseText, 'text/html');
		var newVersion = doc.getElementById('version').getAttribute('content');

		if (newVersion !== currentVersion) {
			console.log('new');
			// twttr.widgets.load(doc.getElementById('content'));
			document.getElementById("content").remove();
		} else {
			console.log('same');
		}
	}
	client.send();
}

window.onload = function () {
	document.getElementById('loader').style.display = 'none';
	document.getElementById('content').style.display = 'block';
}

//reload every  seconds
setInterval(function () {
	load()
}, 5 * 1000);

@@ -99,22 +99,19 @@
 ;%0A%0A%09var 
-client
+xhr
  = new X
@@ -128,22 +128,19 @@
 est();%0A%09
-client
+xhr
 .open('G
@@ -160,22 +160,19 @@
 tml');%0A%09
-client
+xhr
 .onready
@@ -199,16 +199,96 @@
 on () %7B%0A
+%09%09if (xhr.readyState !== XMLHttpRequest.DONE %7C%7C xhr.status !== 200)%0A%09%09%09return;%0A%0A
 %09%09var pa
@@ -346,22 +346,19 @@
 mString(
-client
+xhr
 .respons
@@ -667,14 +667,11 @@
 %09%7D%0A%09
-client
+xhr
 .sen

fix xhr