| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta charset="UTF-8"> |
| 5 |
<title>fetchpriority</title> |
| 6 |
</head> |
| 7 |
<body> |
| 8 |
<script src="../resources/dummy.js?1" fetchpriority="low"></script> |
| 9 |
<script src="../resources/dummy.js?2" fetchpriority="high"></script> |
| 10 |
<script src="../resources/dummy.js?3" fetchpriority="auto"></script> |
| 11 |
<script src="../resources/dummy.js?4"></script> |
| 12 |
<svg><script href="../resources/dummy.js?5" fetchpriority="low"></script></svg> |
| 13 |
<svg><script href="../resources/dummy.js?6" fetchpriority="high"></script></svg> |
| 14 |
<svg><script href="../resources/dummy.js?7" fetchpriority="auto"></script></svg> |
| 15 |
<svg><script href="../resources/dummy.js?8"></script></svg> |
| 16 |
<img src="../resources/square_25px_x_25px.png"> |
| 17 |
<!-- The image makes the external in-body |
| 18 |
(https://html.spec.whatwg.org/#parsing-main-inbody) scripts considered "late" |
| 19 |
(https://web.dev/articles/fetch-priority#browser_priority_and_fetchpriority). |
| 20 |
--> |
| 21 |
<script src="../resources/dummy.js?9" fetchpriority="low"></script> |
| 22 |
<script src="../resources/dummy.js?10" fetchpriority="high"></script> |
| 23 |
<script src="../resources/dummy.js?11" fetchpriority="auto"></script> |
| 24 |
<script src="../resources/dummy.js?12"></script> |
| 25 |
<svg><script href="../resources/dummy.js?13" fetchpriority="low"></script></svg> |
| 26 |
<svg><script href="../resources/dummy.js?14" fetchpriority="high"></script></svg> |
| 27 |
<svg><script href="../resources/dummy.js?15" fetchpriority="auto"></script></svg> |
| 28 |
<svg><script href="../resources/dummy.js?16"></script></svg> |
| 29 |
<script> |
| 30 |
onload = function() { |
| 31 |
opener.postMessage("ChildLoaded"); |
| 32 |
} |
| 33 |
</script> |
| 34 |
</body> |
| 35 |
</html> |