1
Fork 0

Greatly improve rustdoc rendering speed issues

This commit is contained in:
Guillaume Gomez 2018-11-16 16:31:07 +01:00
parent 118e052d84
commit edfe2a893e
4 changed files with 611 additions and 529 deletions

View file

@ -868,9 +868,8 @@ themePicker.onblur = handleThemeButtonsBlur;
}
{
let mut data = format!("var resourcesSuffix = \"{}\";\n",
cx.shared.resource_suffix);
data.push_str(static_files::STORAGE_JS);
let mut data = static_files::STORAGE_JS.to_owned();
data.push_str(&format!("var resourcesSuffix = \"{}\";", cx.shared.resource_suffix));
write_minify(cx.dst.join(&format!("storage{}.js", cx.shared.resource_suffix)),
&data,
options.enable_minification)?;