blob: 6f37a33e8c2e83f3347b3c18ce0fb2d1ed5efe10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>transfer size of resource timing when loaded from memory cache.</title>
</head>
<body>
<script>
// This function is called from the test in the parent document.
function getScript(url) {
const script = document.createElement("script");
const loaded = new Promise(resolve => {
script.onload = script.onerror = resolve;
});
script.src = url;
document.body.appendChild(script);
return loaded;
}
</script>
</body>
</html>
|