<!DOCTYPE HTML> | |
<html> | |
<head> | |
<script src="../../../resources/js-test-pre.js"></script> | |
</head> | |
<body> | |
<script> | |
description('Test script.beforeload will be fired when the module tag with src is prepared.'); | |
// Module will be executed asynchronously. | |
window.jsTestIsAsync = true; | |
debug('Module is not executed yet.'); | |
</script> | |
<script src="../../../resources/js-test-post.js"></script> | |
<script type="module" onbeforeload="finishJSTest()" src="resources/module-will-fire-beforeload.js"></script> | |
</body> | |
</html> |