Sidebar render glitch
Summary
When the sidebar is pinned and closed there is a unexpected animation on some pages.
Steps to reproduce
- Go to https://gitlab.com/gitlab-org/gitlab-ce/activity
- Open sidebar
- Pin sidebar
- Close sidebar
- Click on Activity in header navigation
Expected behavior
When switching pages the sidebar should not be animated in or out of any state. Rather it should remain in the last set state.
Actual behavior
The sidebar is initiated with a default state and shortly after set the last state defined in a cookie. This results in a short animation of sidebar and content.
Possible fixes
Only add transition to sidebar, header and content after sidebar is rendered for the first time.