playwright/tests/assets/load-event/load-event.html

23 lines
630 B
HTML
Raw Normal View History

<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Load Event Test</title>
</head>
<body>
<script>
window.results = [];
window.addEventListener('load', function() {
window.results.push('load');
});
window.addEventListener('DOMContentLoaded', function() {
window.results.push('DOMContentLoaded');
});
</script>
<script type="module" src="./module.js"></script>
<script>
window.results.push('script tag after after module');
</script>
</body>
</html>