Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<script src="utils.js"></script>
<title>Fenced frame content to report the result of prerendering</title>
<body>
<script>
(() => {
[prerender_ready_key, prerender_loaded_key, prerender_activated_key] =
parseKeylist();
document.addEventListener('prerenderingchange', () => {
writeValueToServer(prerender_activated_key, 'activated');
});
if (document.prerendering) {
writeValueToServer(prerender_ready_key, 'ready');
} else {
writeValueToServer(prerender_loaded_key, 'loaded');
}
})();
</script>
</body>