]> git.lizzy.rs Git - rust.git/commit
Fix unpredictable ordering of sidebar boxes in rustdoc
authorJoshua Holmer <holmerj@uindy.edu>
Wed, 18 Nov 2015 21:21:19 +0000 (16:21 -0500)
committerJoshua Holmer <holmerj@uindy.edu>
Wed, 18 Nov 2015 21:21:19 +0000 (16:21 -0500)
commit51c35dbd304c0ffa8c582fdf0f3a28a7015d5630
tree31f7fc9b45700f98615d2da545a192b2453435b8
parent28f6b8897845f4590c50757b30766fb792d2cdb7
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