| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script> |
| 3 if (window.testRunner) { |
| 4 testRunner.dumpAsText(); |
| 5 testRunner.dumpChildFramesAsText(); |
| 6 } |
| 7 if (window.internals) |
| 8 internals.settings.setLogDnsPrefetchAndPreconnect(true); |
| 9 window.onload = function() { |
| 10 var o=document.createElement("LINK"); |
| 11 o.setAttribute("rel", "preconnect"); |
| 12 o.setAttribute("href", "http://preconnect.com.test/"); |
| 13 document.head.appendChild(o); |
| 14 }; |
| 15 </script> |
| 16 This test verifies that a preconnect request is sent and logged when a |
| 17 link element is added dynamically. |
| OLD | NEW |