Source code

Revision control

Copy as Markdown

Other Tools

<!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>