blob: edf6793dfb105f10924c473eabbf911fb17aa7fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<!DOCTYPE HTML>
<html>
<body><iframe srcdoc="
<html>
<head>
<script>
onload = function() {
// Ensure the layout is up-to-date and painted.
requestAnimationFrame(function() {
setTimeout(run);
})
}
function run() {
parent.opener.postMessage('doscroll', '*');
window.onscroll = function() {
parent.opener.postMessage('didscroll', '*');
}
let xhr = new XMLHttpRequest();
xhr.open('GET', 'slow.sjs', false);
xhr.send();
parent.opener.postMessage('xhr_done', '*');
}
</script>
</head>
<body style='height: 3000px; border: 1px solid black;'>
</body>
</html>
"></iframe></body>
</html>
|