<!DOCTYPE html>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
if (window.internals) {
internals.settings.setLogDnsPrefetchAndPreconnect(true);
}
document.write("<script src='resources/link-dnsprefetch-script.php'></s"+"cript>");
</script>
This test checks if a Link header inside a script triggered a dns prefetch.