Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <?php | |
| 2 header("Link: <http://127.0.0.1:8000/resources/square.png?background>;rel=pr efetch", false); | |
| 3 ?> | |
| 4 <!DOCTYPE html> | |
| 5 <html> | |
| 6 <head></head> | |
| 7 <body> | |
| 8 <script src="/resources/testharness.js"></script> | |
| 9 <script src="/resources/testharnessreport.js"></script> | |
| 10 <script> | |
| 11 var t = async_test('Makes sure that Link headers prefetch resources'); | |
| 12 </script> | |
| 13 <script src="/resources/slow-script.pl?delay=200"></script> | |
|
Charlie Harrison
2017/01/01 18:36:04
Why do we need to load this script at all?
| |
| 14 <script> | |
| 15 window.addEventListener("load", t.step_func(function() { | |
| 16 var entries = performance.getEntriesByType("resource"); | |
| 17 assert_equals(entries.length, 4); | |
| 18 t.done(); | |
| 19 })); | |
| 20 </script> | |
| 21 </body> | |
| 22 </html> | |
| OLD | NEW |