]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #82545 - jsha:woff2, r=GuillaumeGomez
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 26 Feb 2021 14:52:36 +0000 (15:52 +0100)
committerGitHub <noreply@github.com>
Fri, 26 Feb 2021 14:52:36 +0000 (15:52 +0100)
commitb4ded5a07bf43fd8b645d8e18eeae6f522d574a6
tree9627d71322bbd946ca39e215efae9dfd319df471
parent6b5e141999cc2350c0322cef9a0b569f2908d341
parentad7ed13eab09f2bb9311e4338de0fb347e700e73
Rollup merge of #82545 - jsha:woff2, r=GuillaumeGomez

rustdoc: add optional woff2 versions of FiraSans.

For browsers that support woff2 (most modern ones:
https://caniuse.com/woff2), this offers a reduction in download size
for these two fonts from 362k to 257k (32% reduction). It decreases the
total page size for `struct.String.html` (counting all subresources) by
about 2.5%.

If this is interesting, I'm happy to apply the same treatment to the
other fonts, but these two are the biggest.
src/librustdoc/html/render/mod.rs