Skip to content

Commit

Permalink
Rollup merge of rust-lang#38480 - clarcharr:import_css, r=steveklabnik
Browse files Browse the repository at this point in the history
Don't @import normalize.css.

This lets the browser load both files in parallel instead of waiting for `rustdoc.css` to load first.
  • Loading branch information
steveklabnik authored Dec 24, 2016
2 parents d15a477 + 17dd0e5 commit 80d745a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/librustdoc/html/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ r##"<!DOCTYPE html>
<title>{title}</title>
<link rel="stylesheet" type="text/css" href="{root_path}normalize.css">
<link rel="stylesheet" type="text/css" href="{root_path}rustdoc.css">
<link rel="stylesheet" type="text/css" href="{root_path}main.css">
{css_extension}
Expand Down
2 changes: 0 additions & 2 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import "normalize.css";

/**
* Copyright 2013 The Rust Project Developers. See the COPYRIGHT
* file at the top-level directory of this distribution and at
Expand Down

0 comments on commit 80d745a

Please sign in to comment.