tor-browser

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

html_module-script-cache.html (790B)


      1 <html>
      2 <head>
      3 <!--
      4    Importing the same module script multiple times within the same document
      5    should not generate multiple fetch, regardless of whether the script cache
      6    is used or not, and there should be only one request shown in the network
      7    monitor.
      8  -->
      9 <script type="module" src="sjs_test-module-script.sjs"></script>
     10 <script type="module" src="sjs_test-module-script.sjs"></script>
     11 <script type="module">
     12 import { f } from "./sjs_test-module-script.sjs";
     13 f();
     14 </script>
     15 <script type="module">
     16 import { f } from "./sjs_test-module-script.sjs";
     17 f();
     18 </script>
     19 <script type="module">
     20 const { f } = await import("./sjs_test-module-script.sjs");
     21 f();
     22 </script>
     23 <script type="module">
     24 const { f } = await import("./sjs_test-module-script.sjs");
     25 f();
     26 </script>
     27 </head>
     28 </html>