<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 10px;
height: 0px;
background-color: black;
float:left;
}
</style>
</head>
<body>
<div id="result"></div>
<script>
var start_time = new Date();
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var end_time = new Date();
var time = (end_time - start_time)/1000;
document.getElementById("result").innerHTML = "5MB staženo za "+time+"s";
}
};
xhttp.open("GET", "http://adasek.cz/velke.php?"+Math.random(), true);
xhttp.send();
</script>
</body>
</html>