]> git.lizzy.rs Git - rust.git/commit
Unblock font loading in rustdoc.css
authorJubilee <46493976+workingjubilee@users.noreply.github.com>
Sun, 10 May 2020 21:59:38 +0000 (14:59 -0700)
committerGitHub <noreply@github.com>
Sun, 10 May 2020 21:59:38 +0000 (14:59 -0700)
commit510fce10f8a22521ec861f4446a304f9a2e4c5bd
treeb0373747d00792268e0ff7e2433bf9b5ba020cd5
parent9912925c254589f58338cb2993163e618475ff75
Unblock font loading in rustdoc.css

rustdoc's font loading defaults to "auto", so browsers may block render.
But rustdoc's case prefers a faster TTI for scrolling, this means the
strictest font-display in use should be "swap". rustdoc's fonts do provide
notable legibility improvements but first-time users will have little trouble
reading without. This means "optional" is preferred.

The one exception is Source Serif Pro: it's a big difference for body text, so
"fallback" is preferred over "optional" to cause a (tiny) block.
src/librustdoc/html/static/rustdoc.css