3 <title>Preloader
</title>
4 <script src=
"prerender_events_common.js"></script>
7 function UnloadHandler() {
8 // Signal to the browser the unload happened by hitting a URL. Must
9 // be synchronous so the request isn't cancelled.
10 var xhr
= new XMLHttpRequest();
11 xhr
.open('GET', 'http://unload-url.test', false);
15 addEventListener('unload', UnloadHandler
, false);
21 AddPrerender('REPLACE_WITH_PRERENDER_URL', 0);