Mypal/dom/base/test/file_timer_flood.html
2019-03-11 13:26:37 +03:00

20 lines
342 B
HTML

<!DOCTYPE HTML>
<html>
<body>
<script>
let count = 0;
function cb() {
count += 1;
// Notify our parent that we are ready once the timer flood has
// warmed up.
if (count === 10000) {
window.parent.postMessage('STARTED', '*');
}
setTimeout(cb, 0);
setTimeout(cb, 0);
}
addEventListener('load', cb);
</script>
</body>
</html>