-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (56 loc) · 2.14 KB
/
index.html
File metadata and controls
56 lines (56 loc) · 2.14 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
<!doctype html>
<html lang="en">
<head>
<!--
Ensures no old Service Workers interfere with page navigation or caching,
unregistering existing ones and registering a no-op Service Worker for cleanup.
-->
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker
.getRegistrations()
.then((rs) => Promise.all(rs.map((r) => r.unregister())))
.then(() => navigator.serviceWorker.register("/sw.js"))
.catch(() => {});
}
</script>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/search.svg" />
<!-- Preconnect to Google Fonts domains to speed up font loading. -->
<link
rel="preconnect"
href="https://fonts.googleapis.com"
crossorigin="anonymous"
/>
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin="anonymous"
/>
<!-- Preload the Inter font stylesheet to ensure it loads early for better FCP. -->
<link
rel="preload"
as="style"
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
/>
<!-- Link the Inter font stylesheet, initially loading without blocking rendering. -->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
media="print"
onload="this.media='all'"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quackly</title>
<meta
name="description"
content="A better default search engine (with bangs!)"
/>
</head>
<body>
<!-- This div is the mount point for the main application (Quackly's UI). -->
<div id="app"></div>
<!-- Loads the main application script that renders the UI and handles logic. -->
<script type="module" src="/src/main.ts"></script>
</body>
</html>