-
Notifications
You must be signed in to change notification settings - Fork 1
/
browser-worker.html
44 lines (42 loc) · 984 Bytes
/
browser-worker.html
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/common.css">
<style>
.loops {
display: flex;
height: 100vh;
}
fieldset {
width: 40vw;
height: 80vh;
border: 4px solid white;
margin: auto;
}
legend {
font-size: 2em;
padding: 0 1em;
}
iframe {
width: 100%;
height: 90%;
border: none;
}
</style>
<title>Web Worker Event Loop</title>
</head>
<body>
<div class="loops">
<fieldset>
<legend align="center">Main browser window</legend>
<iframe src="microtasks.html"></iframe>
</fieldset>
<fieldset>
<legend align="center">job.js</legend>
<iframe src="web-worker.html"></iframe>
</fieldset>
</div>
</body>
</html>