<!DOCTYPE html>
<html>
<body>
<script>
window.addEventListener("pagehide", function(event) {
    var xhr = new XMLHttpRequest();
    xhr.open("GET", "resources/slow-resource.pl?delay=3000", true);
    xhr.send();
}, false);
</script>
</body>
</html>
