summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/preload/prefetch-load-event.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/preload/prefetch-load-event.html')
-rw-r--r--testing/web-platform/tests/preload/prefetch-load-event.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/web-platform/tests/preload/prefetch-load-event.html b/testing/web-platform/tests/preload/prefetch-load-event.html
new file mode 100644
index 0000000000..c1cb75d52e
--- /dev/null
+++ b/testing/web-platform/tests/preload/prefetch-load-event.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/common/utils.js"></script>
+<link rel="prefetch" href="/xhr/resources/delay.py?ms=100000">
+<body>
+<script>
+
+promise_test(() => new Promise(resolve => window.addEventListener("load", resolve)),
+ "Prefetch should not block the load event");
+
+</script>
+</body> \ No newline at end of file