If mw.hook('wikipage.content') fires more than once by Javascript, it will be broken.
Steps to reproduce:
- Open the debugger in your wiki by pressing Shift+Ctrl+I.
- In the console, type mw.hook('wikipage.content').fire() and hit enter.
- Click a header of the sidebar.
-> The sidebar will be collapsed immediately after it is expanded.