tor-browser

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

infinite-sibling-and-nested.html (356B)


      1 <!doctype html>
      2 <title>infinite sibling and nested workers</title>
      3 <p>The number below should be increasing (ideally never-ending).</p>
      4 <div>0</div>
      5 <script>
      6 var worker = new Worker('infinite-sibling-and-nested.js');
      7 var div = document.getElementsByTagName('div')[0];
      8 var i = 0;
      9 worker.onmessage = function(e) {
     10  div.textContent = i + e.data;
     11 }
     12 </script>