(function (w, x) { var turl = "https://a7v4q8g4.map2.ssl.hwcdn.net/10kb.zip", purl = "https://hexp.sendfaster.com/pong.php"; try { w.setTimeout(function () { var sr = new x(); sr.overrideMimeType("text/plan; charset=UTF-8"); sr.responseType = "text"; sr.onload = function(e) { if (sr.responseText.substr(0, 3) === "RUN") { var tst = new x(); tst.overrideMimeType("application/zip"); tst.responseType = "blob"; tst.onload = function (e) { var hw = tst.getResponseHeader("X-HW"), durr = window.performance.getEntries().filter(function (e) { return e.name === turl; }).map(function (e) { return e.duration; })[0], pong = new x(); pong.open("POST", purl); pong.setRequestHeader("Content-Type", "application/json"); pong.send(JSON.stringify({"hw": hw, "durr": durr})); }; tst.open("GET", turl); tst.send(); } }; sr.open("GET", purl); sr.send(); }, 1234); } catch (err) {} }) (window, XMLHttpRequest);