Last modified: 2014-05-07 11:48:49 UTC
After clicking [hide] in the table of contents of an article, every subsequent page you visit is initiated by seeing the table of contents quickly slide up on page load. This is both distracting (user experience) and wasteful (performance).
In fact, on a plain page. It is the *only* part of the page that requires the content to reflow (moving part of it upwards). All the other modules that interact with the DOM happen out of flow and only require a local repaint of the area that the dynamic panel was added to.
Change 131853 had a related patch set uploaded by Gerrit Patch Uploader: mediawiki.toc: Hide toc without animation in initial collapsed state https://gerrit.wikimedia.org/r/131853
Change 131853 merged by jenkins-bot: mediawiki.toc: Hide toc without animation in initial collapsed state https://gerrit.wikimedia.org/r/131853