Auto merge of #56005 - GuillaumeGomez:speedup-doc-render, r=QuietMisdreavus
Greatly improve rustdoc rendering speed issues Fixes #55900. So a few improvements here: * we're switching to `DOMTokenList` API when available providing a replacement if it isn't (should only happen on safari and IE I think...) * hide doc sections by default to allow the whole HTML generation to happen in the background to avoid triggering DOM redraw all the times (which killed the performances) r? @QuietMisdreavus
This commit is contained in:
commit
7f04a646c6
7 changed files with 688 additions and 612 deletions
|
@ -54,6 +54,7 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
|
|||
<link rel=\"stylesheet\" type=\"text/css\" href=\"{root_path}light{suffix}.css\" \
|
||||
id=\"themeStyle\">\
|
||||
<script src=\"{root_path}storage{suffix}.js\"></script>\
|
||||
<noscript><link rel=\"stylesheet\" href=\"{root_path}noscript{suffix}.css\"></noscript>\
|
||||
{css_extension}\
|
||||
{favicon}\
|
||||
{in_header}\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue