on master help sign in
hidden strings for font force-loading

fixes urbit/bridge#894

commit9363e713b7f987974a4c641eb2108fad6d46e309 authorJames Acklin <james@tlon.io> dateTue 1 Feb 2022, 15:41 (5 years ago) parent71155a2
1 file changed+61−15
public/index.html+61−15
public/index.html+61−15
@@ -1,26 +1,72 @@
11<!DOCTYPE html>
22<html lang="en">
33 <head>
4− <meta charset="utf-8">
5− <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6− <meta name="theme-color" content="#fff">
7− <link rel="manifest" href="%PUBLIC_URL%/manifest.json">
8− <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
4+ <meta charset="utf-8" />
5+ <meta
6+ name="viewport"
7+ content="width=device-width, initial-scale=1, shrink-to-fit=no"
8+ />
9+ <meta name="theme-color" content="#fff" />
10+ <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
11+ <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
912 <title>Bridge</title>
13+ <style type="text/css">
14+ .hidden {
15+ position: absolute;
16+ overflow: hidden;
17+ clip: rect(0 0 0 0);
18+ height: 1px;
19+ width: 1px;
20+ margin: -1px;
21+ padding: 0;
22+ border: 0;
23+ }
24+ </style>
1025 </head>
1126 <body>
12− <noscript>
13− You need to enable JavaScript to run this app.
14− </noscript>
1527 <div id="root"></div>
1628 <!-- Force load all fonts -->
17− <div style="position:fixed;left=-9999px;top=-9999px;opacity:0;user-select:none;">
18− <p style="font-family:Inter;font-weight:400">Aa</p>
19− <p style="font-family:Inter;font-weight:500">Aa</p>
20− <p style="font-family:Inter;font-weight:600">Aa</p>
21− <p style="font-family:Source Code Pro;font-weight:400">Aa</p>
22− <p style="font-family:Source Code Pro;font-weight:500">Aa</p>
23− <p style="font-family:Source Code Pro;font-weight:600">Aa</p>
29+ <div
30+ aria-visibility="hidden"
31+ class="hidden"
32+ style="font-family:Inter; font-weight:400"
33+ >
34+ &nbsp;
35+ </div>
36+ <div
37+ aria-visibility="hidden"
38+ class="hidden"
39+ style="font-family:Inter; font-weight:500"
40+ >
41+ &nbsp;
42+ </div>
43+ <div
44+ aria-visibility="hidden"
45+ class="hidden"
46+ style="font-family:Inter; font-weight:600"
47+ >
48+ &nbsp;
49+ </div>
50+ <div
51+ aria-visibility="hidden"
52+ class="hidden"
53+ style="font-family:Source Code Pro; font-weight:400"
54+ >
55+ &nbsp;
56+ </div>
57+ <div
58+ aria-visibility="hidden"
59+ class="hidden"
60+ style="font-family:Source Code Pro; font-weight:500"
61+ >
62+ &nbsp;
63+ </div>
64+ <div
65+ aria-visibility="hidden"
66+ class="hidden"
67+ style="font-family:Source Code Pro; font-weight:600"
68+ >
69+ &nbsp;
2470 </div>
2571 </body>
2672</html>