blob: 052d18ce88479a5975adc13f2ba2a3c67a562236 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="/js-test-resources/js-test.js"></script>
<body>
<script>
var link = document.createElement("link");
link.as = "script";
link.rel = "preload";
link.href = "../resources/slow-script.pl?delay=100";
document.body.appendChild(link);
document.body.removeChild(link);
var downloadedScript = false;
window.addEventListener("load", function() {
var entries = performance.getEntriesByType("resource");
for (var i = 0; i < entries.length; ++i) {
if (entries[i].name.indexOf("slow-script.pl?delay=100") != -1)
downloadedScript = true;
}
shouldBeFalse("downloadedScript");
});
</script>
<script src="../resources/slow-script.pl?delay=300"></script>
</body>