forked from bradleytaunt/1mb-club
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (69 loc) · 2.92 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
layout: default
title: 1MB Club
summary: Listing all websites under 1MB in total size
---
<header>
<h1>1MB Club</h1>
<p>The internet has become a <em>bloated mess</em>. Massive JavaScript libraries. Countless client-side queries. Overly complex frontend frameworks.</p>
<p>These things are a <strong>cancerous growth</strong> on the web.</p>
<p>But we can make a difference - no matter how small it may seem. <em>1MB Club</em> is a growing collection of performance-focused web pages found across the internet.</p>
<p><strong>The two rules for a web page to qualify as a member:</strong></p>
<ol>
<li>Total website size (not <i>just</i> transferred data) must not exceed 1 megabyte</li>
<li>The website must contain a reasonable amount of content / usefulness in order to be added - no sites with a simple line of text, etc.</li>
</ol>
<hr>
<details>
<summary><strong>How can I submit a website?</strong></summary>
<p>Please follow the instructions on the main <a target="_blank" href="https://github.com/bradleytaunt/1mb-club">Github project repo</a>.</p>
</details>
<hr>
<details>
<summary><strong>How can I help support this project?</strong></summary>
<p>If you are feeling generous, I would greatly appreciate <a href="https://en.liberapay.com/tdarb/">any donations to help support the site.</a></p>
</details>
<hr>
<details>
<summary><strong>Why is the members list randomized?</strong></summary>
<p>This gives visitors the ability to see interesting and new websites everytime they visit! It also prevents odd instances of "racing to the top".</p>
</details>
<hr>
<details>
<summary><strong>Looking for a <i>more extreme</i> club?</strong></summary>
<p>Take a look and checkout the even more exclusive membership collection at the <a href="https://xhtml.club">XHTML Club</a>.</p>
</details>
<hr>
<br>
</header>
<main>
<h2>Official Members</h2>
<hr><br>
<table>
<thead align="left">
<tr>
<th>URL</th>
<th align="right">Size (KB)</th>
</tr>
</thead>
<tbody id="container">
{% assign websites = site.site_listings %}
{% for item in websites %}
<tr>
<td><a target="_blank" href="https://{{ item.pageurl }}">{{ item.pageurl }}</a></td>
<td align="right"><span>{{ item.size }}</span></td>
</tr>
{% endfor %}
</tbody>
</table>
</main>
<br>
<hr>
<script>
const container = document.querySelector('#container');
const children = [...container.children];
children.forEach(child => child.remove());
const randomChildren = children.map((child) => ({ child, rand: Math.random() }));
randomChildren.sort((a, b) => b.rand - a.rand);
randomChildren.forEach(randomObj => container.appendChild(randomObj.child));
</script>