1 <!-- Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ -->
7 <meta charset=
"utf-8"/>
8 <meta http-equiv=
"Cache-Control" content=
"no-cache, no-store, must-revalidate" />
9 <meta http-equiv=
"Pragma" content=
"no-cache" />
10 <meta http-equiv=
"Expires" content=
"0" />
11 <title>Network Monitor test page
</title>
12 <link rel=
"stylesheet" type=
"text/css" href=
"stylesheet_request" />
16 <p>Request frame test
</p>
17 <img src=
"img_request" />
18 <script type=
"text/javascript">
21 function performXhrRequest() {
22 const xhr
= new XMLHttpRequest();
23 xhr
.open("GET", "xhr_request", true);
27 function performFetchRequest() {
28 fetch("fetch_request");
31 function performBeaconRequest() {
32 navigator
.sendBeacon("beacon_request");
36 performFetchRequest();
38 // Perform some requests with async stacks
39 Promise
.resolve().then(function performPromiseFetchRequest() {
40 fetch("promise_fetch_request");
41 setTimeout(function performTimeoutFetchRequest() {
42 fetch("timeout_fetch_request");
44 // Finally, send a beacon request
45 performBeaconRequest();