1
0
Fork 0
firefox/devtools/client/netmonitor/test/html_module-script-cache.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

28 lines
790 B
HTML

<html>
<head>
<!--
Importing the same module script multiple times within the same document
should not generate multiple fetch, regardless of whether the script cache
is used or not, and there should be only one request shown in the network
monitor.
-->
<script type="module" src="sjs_test-module-script.sjs"></script>
<script type="module" src="sjs_test-module-script.sjs"></script>
<script type="module">
import { f } from "./sjs_test-module-script.sjs";
f();
</script>
<script type="module">
import { f } from "./sjs_test-module-script.sjs";
f();
</script>
<script type="module">
const { f } = await import("./sjs_test-module-script.sjs");
f();
</script>
<script type="module">
const { f } = await import("./sjs_test-module-script.sjs");
f();
</script>
</head>
</html>