-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdemo-stress-test.html
46 lines (46 loc) · 1.41 KB
/
demo-stress-test.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<title></title>
<link rel="stylesheet" href="demo-stress-test-styles.css">
<script type="module" src="/is-land.js"></script>
<script type="module">
customElements.define("test-element", class extends HTMLElement {
connectedCallback() {
console.log( "<test-element> connectedCallback" );
}
});
</script>
</head>
<body>
{% comment %}Liquid.js was having trouble with such a large loop!{% endcomment %}
{% for i in (1..2000) %}
<is-land on:visible on:idle class="island">
<test-element><test-element> #{{i}}</test-element>
</is-land>
{% endfor %}
{% for i in (1..2000) %}
<is-land on:visible on:idle class="island">
<test-element><test-element> #{{i | plus: 2000}}</test-element>
</is-land>
{% endfor %}
{% for i in (1..2000) %}
<is-land on:visible on:idle class="island">
<test-element><test-element> #{{i | plus: 4000}}</test-element>
</is-land>
{% endfor %}
{% for i in (1..2000) %}
<is-land on:visible on:idle class="island">
<test-element><test-element> #{{i | plus: 6000}}</test-element>
</is-land>
{% endfor %}
{% for i in (1..2000) %}
<is-land on:visible on:idle class="island">
<test-element><test-element> #{{i | plus: 8000}}</test-element>
</is-land>
{% endfor %}
</body>
</html>