blob: cea8fe042460aa6929bdab1f6a2d1773ec1cb7ba [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.internals)
window.internals.settings.setLinkPreloadEnabled(true);
</script>
<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/dummy.js";
document.body.appendChild(link);
</script>
<script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=100"></script>
<script>
shouldBeTrue("internals.isPreloaded('../resources/dummy.js');");
if (window.internals)
window.internals.settings.setLinkPreloadEnabled(false);
</script>
</body>