mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
85d3e9e10f
Differential Revision: https://phabricator.services.mozilla.com/D77445
19 lines
390 B
HTML
19 lines
390 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Wait for it...</title>
|
|
</head>
|
|
<body>
|
|
Try to go to another page.
|
|
<script>
|
|
addEventListener("StartLongLoop", function() {
|
|
setTimeout(() => {
|
|
const start = Date.now();
|
|
while (Date.now() - start < 7500);
|
|
window.dispatchEvent(new CustomEvent("LongLoopEnded"));
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|