summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/preload/prefetch-load-event.html
blob: c1cb75d52ea6db7b48d2c606619b69b3c03fbb3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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>