Page MenuHomePhabricator

mediawiki.toc: Table of contents should not animate to initial collapsed state
Closed, ResolvedPublic

Description

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).


Version: 1.24rc
Severity: enhancement

Details

Reference
bz64927

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:19 AM
bzimport set Reference to bz64927.
bzimport added a subscriber: Unknown Object (MLST).

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