Source code
Revision control
Copy as Markdown
Other Tools
<!doctype html>
<script>
onbeforeunload = function() {
opener.onChildBeforeUnload();
};
onload = async function() {
let ongoingLoad = fetch(location.href);
// Load shouldn't be canceled.
await ongoingLoad;
setTimeout(function() {
opener.onChildLoadTimedOut();
}, 1000);
};
onunload = function() {
opener.onChildUnload();
};
</script>