|
13 | 13 | <link rel="stylesheet" href="github-ribbon.css">
|
14 | 14 | <script src="index.js"></script>
|
15 | 15 |
|
16 |
| - <link rel=preload as=image href="front-page-icons/bad-white.svg"> |
17 |
| - <link rel=preload as=image href="front-page-icons/dubious-white.svg"> |
18 |
| - <link rel=preload as=image href="front-page-icons/good-white.svg"> |
19 |
| - <link rel=preload as=image href="front-page-icons/page-white.svg"> |
20 |
| - <link rel=preload as=image href="front-page-icons/bullet-list-white.svg"> |
21 |
| - <link rel=preload as=image href="front-page-icons/external-white.svg"> |
22 |
| - |
23 | 16 | <!-- fUnKy -->
|
24 | 17 | <link rel="stylesheet" href="funky/funky.css">
|
25 | 18 | <script src="funky/funky.js"></script>
|
@@ -161,6 +154,21 @@ <h2 id="test-suites"><span class="emoji">🛠</span>Test Suites</h2>
|
161 | 154 | <a href="https://www.ssllabs.com/ssltest/viewMyClient.html" target="_blank" class="external"><span class="icon"></span>SSL Labs Client Test</a>
|
162 | 155 | <a href="https://mitm.watch/" target="_blank" class="external"><span class="icon"></span>mitm.watch</a>
|
163 | 156 | </div>
|
| 157 | + <div id="preload" style="width: 0; height: 0;"> |
| 158 | + <!-- <link rel=preload> results in warnings in Chrome: https://crbug.com/661055 --> |
| 159 | + <!-- Workaround: Load the images in bogus elements. --> |
| 160 | + <script> |
| 161 | + window.addEventListener("load", function() { |
| 162 | + var parent = document.querySelector("#preload"); |
| 163 | + var names = ["bad-white","dubious-white","good-white","page-white","bullet-list-white","external-white"] |
| 164 | + for (var i = 0; i < names.length; i++) { |
| 165 | + var elem = document.createElement("span"); |
| 166 | + elem.style.backgroundImage = "url(front-page-icons/" + names[i] + ".svg)"; |
| 167 | + parent.appendChild(elem); |
| 168 | + } |
| 169 | + }); |
| 170 | + </script> |
| 171 | + </div> |
164 | 172 | </div><!-- class="column" -->
|
165 | 173 |
|
166 | 174 | </div><!-- id="links" -->
|
|
0 commit comments