tor-browser

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

iframe-load-from-mem-cache-transfer-size.html (547B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 
      4 <head>
      5  <meta charset="utf-8" />
      6  <title>transfer size of resource timing when loaded from memory cache.</title>
      7 </head>
      8 
      9 <body>
     10  <script>
     11    // This function is called from the test in the parent document.
     12    function getScript(url) {
     13      const script = document.createElement("script");
     14      const loaded = new Promise(resolve => {
     15        script.onload = script.onerror = resolve;
     16      });
     17      script.src = url;
     18      document.body.appendChild(script);
     19      return loaded;
     20    }
     21  </script>
     22 </body>
     23 
     24 </html>