Move Toolbar rendering in the admin to the header
|Reported by:||nacin||Owned by:||nacin|
Some admin pages take a while to load. Examples include:
- themes.php page with a boatload of themes
- edit.php with a large posts-per-page setting
- an update which does not operate in an iframe
There's nothing truly wrong with a page that takes a long time to fully paint (150 themes is a lot of screenshots to load) unless we need DOM ready to fire quickly, but it does look broken when you see the empty space at the top.
The in_admin_header seems like a good candidate hook. At worst, we add a new hook.
The Debug Bar will still simply wait until admin_footer to spit out its panel information. That's the only contraindication I could think of for not doing this.