<!-- | |
setInterval(function() { postMessage(new Date()) }, 10) | |
/* | |
--> | |
<!doctype html> | |
<title>001-1</title> | |
<script> | |
onload = function() { | |
var worker = new Worker('#'); | |
worker.onmessage = function(e) { | |
var started = !!parent.date; | |
parent.date = e.data; | |
if (!started) { | |
parent.start_test() | |
} | |
} | |
} | |
</script> | |
<a href='data:text/html,<title>foo</title><script>onload=function(){parent.after_load()}</script>'>link</a> | |
<!-- | |
*/ | |
//--> | |