From 51c35dbd304c0ffa8c582fdf0f3a28a7015d5630 Mon Sep 17 00:00:00 2001 From: Joshua Holmer Date: Wed, 18 Nov 2015 16:21:19 -0500 Subject: [PATCH] Fix unpredictable ordering of sidebar boxes in rustdoc A race condition in Javascript was causing unpredictable ordering of the sidebar boxes when loading documentation generated by rustdoc, due to the script that adds the Crates box being executed asynchronously. Disabling the asynchronous execution and deferring this script should ensure that the Crates box always appears last in the sidebox (this seemed to be the more common ordering prior to this change). Fixes #29698 --- src/librustdoc/html/layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs index 0a7ab432846..faddfa4569e 100644 --- a/src/librustdoc/html/layout.rs +++ b/src/librustdoc/html/layout.rs @@ -137,7 +137,7 @@ pub fn render( {play_js} - + "##, content = *t, -- 2.44.0