1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26

content / test / data / page_with_subresources.html [blame]

<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="empty-style.css"></link>
  <link rel="prefetch" href="prefetch"></link>
</head>
<body>
  <img src="image-inline.png">
  <a href="javascript:" ping="ping">link</a>

  <!-- All script-based loading at the bottom to avoid duplicating requests
       due to the preload scanner -->
  <script src="empty-script.js"></script>
  <script>
    // <img>
    var i = document.createElement('img');
    i.src = "image-script";

    // <a ping>
    document.querySelector('a').click();

    // Beacon
    navigator.sendBeacon("/beacon", "foo");
  </script>
</body>
</html>