-
Notifications
You must be signed in to change notification settings - Fork 1
/
microtasks.html
42 lines (38 loc) · 1.31 KB
/
microtasks.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
<!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=yes">
<title>Event Loop with Microtasks</title>
<link rel="stylesheet" href="css/demo.css">
<link rel="stylesheet" href="css/common.css">
<link rel="import" href="components/event-loop.html">
<link rel="import" href="components/browser.html">
<link rel="import" href="components/queues.html">
<link rel="import" href="components/rendering-pipeline.html">
<link rel="import" href="components/queue-selector.html">
<link rel="import" href="components/queue.html">
<link rel="import" href="components/task-source.html">
<style>
body {
--background: transparent;
}
</style>
</head>
<body>
<event-loop>
<div class="sources">
<task-source type="html"></task-source>
<task-source type="browser"></task-source>
<task-source type="timer"></task-source>
<task-source type="network"></task-source>
<task-source type="promise"></task-source>
</div>
<task-queues>
<task-queue type="browser"></task-queue>
<task-queue></task-queue>
<task-queue type="microtask"></task-queue>
</task-queues>
</event-loop>
</body>
</html>