gecko-dev/dom/base/test/file_timer_flood.html

20 строки
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>