blob: c7a355d0d8224613b09c014a28f1452d6958a4ed [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
Checks that deferred scripts fire onbeforeload immediately and that it is cancellable.
<div id="console"></div>
<script src="resources/shouldnotexecute.js" onbeforeload="debug('cancelled onbeforeload defer'); return false;" defer></script>
<script src="resources/defer.js" onbeforeload="debug('onbeforeload defer'); return true;" defer></script>
<script src="resources/external.js" onbeforeload="debug('onbeforeload external'); return true;"></script>
</body>
</html>