about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-09 12:11:52 +0100
committerGitHub <noreply@github.com>2023-03-09 12:11:52 +0100
commit83791f9de73737f2b8102732886d9519d123ff77 (patch)
tree806974444cbe7ed885e2d55370f06da00443b79f /compiler/rustc_errors/src/snippet.rs
parent39f2657d1101b50f9b71ae460b762d330cc8426b (diff)
parent255fdb398ecaa36a274b7ef6c5760233187dc3ad (diff)
downloadrust-83791f9de73737f2b8102732886d9519d123ff77.tar.gz
rust-83791f9de73737f2b8102732886d9519d123ff77.zip
Rollup merge of #106915 - notriddle:notriddle/load-only-one-theme, r=GuillaumeGomez,jsha
Only load one CSS theme by default

This is a tweaked version of #103971 that uses `document.write` to create the stylesheet link at startup, avoiding a FOUC during page navigation. It also rebases the PR, making it work with the new hashed filenames.

Fixes #82614

Preview: http://notriddle.com/notriddle-rustdoc-demos/load-only-one-theme-v2/std/index.html
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions