mirror of https://github.com/docker/docs.git
fonts: use font-display:optional insead of swap
Having `font-display: swap` caused FOUT, swapping to `optional` improves the experience with graceful degradation. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
a6a5cb5ebe
commit
b6cb911afc
|
@ -37,8 +37,8 @@
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap" />
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,500&display=optional" />
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap" />
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=optional" />
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:FILL@1" rel="stylesheet" />
|
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:FILL@1" rel="stylesheet" />
|
||||||
{{ partial "utils/css.html" . }}
|
{{ partial "utils/css.html" . }}
|
||||||
{{ $theme := resources.Get "js/theme.js" | js.Build (dict "minify" true) }}
|
{{ $theme := resources.Get "js/theme.js" | js.Build (dict "minify" true) }}
|
||||||
|
|
Loading…
Reference in New Issue