<!DOCTYPE HTML>
<html>

<head>
  <meta charset="utf-8" />
  <title>This tests transfer size of resource timing when loaded from memory cache.</title>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
  <script src="resources/entry-invariants.js"></script>
</head>

<body>
  <script>
    function getScript(url) {
      const script = document.createElement("script");
      const loaded = new Promise(resolve => {
        script.onload = script.onerror