mirror of
https://github.com/caddyserver/website.git
synced 2025-04-20 12:15:08 -04:00
Add suggested modulepreload line
See https://github.com/GoogleChromeLabs/dark-mode-toggle/issues/25
This commit is contained in:
parent
3220233002
commit
7ee79e96fb
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
||||||
{{include "/includes/head.html"}}
|
{{include "/includes/head.html"}}
|
||||||
<!-- https://github.com/GoogleChromeLabs/dark-mode-toggle -->
|
<!-- https://github.com/GoogleChromeLabs/dark-mode-toggle -->
|
||||||
<script type="module" src="https://unpkg.com/dark-mode-toggle"></script>
|
<script type="module" src="https://unpkg.com/dark-mode-toggle"></script>
|
||||||
|
<!-- modulepreload is still experimental as of this writing, but works in Chrome -->
|
||||||
|
<!-- should help avoid some of the flicker on page load -->
|
||||||
|
<link rel="modulepreload" src="https://unpkg.com/dark-mode-toggle" crossorigin>
|
||||||
|
|
||||||
<link rel="stylesheet" href="/resources/css/docs.css">
|
<link rel="stylesheet" href="/resources/css/docs.css">
|
||||||
<link rel="stylesheet" href="/resources/css/docs-dark.css" media="(prefers-color-scheme: dark)">
|
<link rel="stylesheet" href="/resources/css/docs-dark.css" media="(prefers-color-scheme: dark)">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue