<!DOCTYPE html> | |
<script> | |
if (window.testRunner) { | |
testRunner.dumpAsText(); | |
testRunner.dumpChildFrames(); | |
} | |
if (window.internals) | |
internals.settings.setLogDnsPrefetchAndPreconnect(true); | |
window.onload = function() { | |
var o=document.createElement("LINK"); | |
o.setAttribute("rel", "preconnect"); | |
o.setAttribute("href", "http://preconnect.com.test/"); | |
document.head.appendChild(o); | |
}; | |
</script> | |
This test verifies that a preconnect request is sent and logged when a | |
link element is added dynamically. |