tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

iframe_slow_onload_inner.html (562B)


      1 <html>
      2  <head>
      3    <script>
      4      function load() {
      5        // Let the test page know that it can try to navigate.
      6        top.postMessage("onload", "*");
      7        // We're starting an infinite loop, but we need to time out after a
      8        // while, or the loop will keep running until shutdown.
      9        let t0 = performance.now();
     10        while (performance.now() - t0 < 5000) {
     11            document.getElementById("output").innerText = Math.random();
     12        }
     13      }
     14    </script>
     15  </head>
     16  <body onload="load()">
     17    <p id="output"></p>
     18  </body>
     19 </html>