-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
97 lines (91 loc) · 3.4 KB
/
Copy pathindex.html
File metadata and controls
97 lines (91 loc) · 3.4 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="preconnect" href="https://lab271.io" />
<script>
location.replace('https://lab271.io/open-source/');
</script>
<meta http-equiv="refresh" content="0; url=https://lab271.io/open-source/" />
<!--
ORDER IS THE POINT, and this comment sits below the redirect rather than
above it for the same reason. Those four lines are the whole critical
path and they are the first ~180 bytes of the document:
charset first, so the parser never has to restart. It has to appear
within the first 1024 bytes; an earlier draft of this file
opened with this very comment and pushed it past that.
preconnect starts DNS, TCP and TLS to lab271.io *before* the navigation
is requested, so the handshake overlaps the rest of this
parse instead of queueing behind it. On a cold connection
this is the only change here that saves real time.
script an inline classic script, so it runs synchronously the
instant the parser reaches it. replace() rather than
assignment, so this page leaves no history entry and Back
does not bounce the visitor straight back into it.
refresh the same redirect for anyone without JavaScript. Zero delay,
which search engines treat as a permanent redirect.
Everything below is for crawlers and for the rare visitor who actually
sees this page. None of it can start the navigation any sooner, and every
byte of it placed higher would delay the navigation for everyone.
GitHub Pages cannot return a 301. A real one needs a custom domain on this
repository, and lab271.io resolves to CloudFront rather than to Pages, so
it cannot be one. The four lines above are the strongest redirect a static
host can give.
Deliberately no `noindex`: it contradicts the canonical, and would ask
search engines to drop this page rather than consolidate it onto the new
one.
-->
<link rel="canonical" href="https://lab271.io/open-source/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Lab271 open source has moved to lab271.io/open-source/</title>
<style>
/* Self-contained: no webfont, no external stylesheet. The page is visible
for a few hundred milliseconds at most, and a network round trip to
render it would be the slowest thing on it. */
:root {
color-scheme: dark;
}
body {
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
padding: 2rem;
background: #020c17;
color: #e8edf2;
font-family:
Inter,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Helvetica,
Arial,
sans-serif;
line-height: 1.6;
text-align: center;
}
p {
margin: 0 0 0.75rem;
}
.note {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 0.8125rem;
letter-spacing: 0.06em;
color: #8fa3b8;
}
.slash {
color: #1ee8ed;
}
a {
color: #1ee8ed;
}
</style>
</head>
<body>
<main>
<p class="note">lab271 <span class="slash">\</span> open source</p>
<p>This page has moved to <a href="https://lab271.io/open-source/">lab271.io/open-source/</a>.</p>
<p class="note">Redirecting. If nothing happens, follow the link above.</p>
</main>
</body>
</html>