blob: 1764271581830ebc124d466658ff82d429c124d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!DOCTYPE html>
<meta charset="utf-8">
<title>Prerender while prerendering test: referrer page, opened in a window</title>
<script src="utils.js"></script>
<script type="module">
const params = new URLSearchParams(location.search);
const uid = params.get("uid");
const outerURL = `prerender-while-prerender-outer.html?uid=${uid}`;
startPrerendering(outerURL);
const channel = new PrerenderChannel("start-test", uid);
await new Promise(r => channel.addEventListener("message", r));
channel.close();
location.href = outerURL;
</script>
|