This repository has been archived by the owner on Feb 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (47 loc) · 1.77 KB
/
index.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
45
46
47
48
49
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>React Performance Demo</title>
<link rel="stylesheet" type="text/css" href="dist/base.css" />
</head>
<body>
<!-- Optimised -->
<div class="container" id="optimised">
<div class="editor">
<h1>This editable list is <strong>optimised</strong> and runs faster</h1>
<p>Adding a large number of emails to this list should not adversely affect performance here as much as the one below. Try adding emails and typing into the input.</p>
<div class="emails-input"></div>
</div>
<div class="actions">
<button class="action-button add-email">
Add 200 more emails
</button>
<button class="action-button get-count">
Get emails count
</button>
<span class="indicator"></span>
</div>
</div>
<!-- Control -->
<div class="container" id="control">
<div class="editor">
<h1>This editable list is <strong>not optimised</strong> and runs slower</h1>
<p>Adding a large number of emails to this list will take much longer and will gradually degrade performance. Typing into the input will also become increasingly sluggish.</p>
<div class="emails-input"></div>
</div>
<div class="actions">
<button class="action-button add-email">
Add 200 more emails
</button>
<button class="action-button get-count">
Get emails count
</button>
<span class="indicator"></span>
</div>
</div>
<script type="text/javascript" src="dist/emails-input.js"></script>
<script type="text/javascript" src="dist/example.js"></script>
</body>
</html>