summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/prerender/prerender_with_iframe.html
blob: e265118c0f0019517062c954f5ecbb7947981e86 (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
25
26
27
<html>
<head>
  <title>Prerender with iframe</title>
  <script>
    var pageWasPrerendered = false;

    function DidPrerenderPass() {
      pageWasPrerendered = true;
      return true;
    }

    // Make sure DidPrerenderPass() was called first.  Otherwise, the page was
    // most likely reloaded instead of using the prerendered page.
    function DidDisplayPass() {
      return pageWasPrerendered;
    }
  </script>
</head>
<body>
  <iframe name="iframe" 
          src="REPLACE_WITH_URL" 
          width="0" 
          height="0"
          frameborder="0">
  </iframe>
</body>
</html>