1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<!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>