Skip to content

Commit 80d745a

Browse files
authored
Rollup merge of rust-lang#38480 - clarcharr:import_css, r=steveklabnik
Don't @import normalize.css. This lets the browser load both files in parallel instead of waiting for `rustdoc.css` to load first.
2 parents d15a477 + 17dd0e5 commit 80d745a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/librustdoc/html/layout.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ r##"<!DOCTYPE html>
4646
4747
<title>{title}</title>
4848
49+
<link rel="stylesheet" type="text/css" href="{root_path}normalize.css">
4950
<link rel="stylesheet" type="text/css" href="{root_path}rustdoc.css">
5051
<link rel="stylesheet" type="text/css" href="{root_path}main.css">
5152
{css_extension}

src/librustdoc/html/static/rustdoc.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import "normalize.css";
2-
31
/**
42
* Copyright 2013 The Rust Project Developers. See the COPYRIGHT
53
* file at the top-level directory of this distribution and at

0 commit comments

Comments
 (0)