Enhanced RC: Optimization of the initial collapsing
authorMatmaRex <matma.rex@gmail.com>
Sun, 21 Jul 2013 11:20:37 +0000 (13:20 +0200)
committerMatmaRex <matma.rex@gmail.com>
Sun, 21 Jul 2013 13:54:28 +0000 (15:54 +0200)
commit070374b7a4811bfb5c9da4350bc16b77321537e3
tree91df757062044586ba3714b0143140558c579540
parente6fb2a2c556379197dd63943f91f8fc9997c9632
Enhanced RC: Optimization of the initial collapsing

* mediawiki.special.changeslist.enhanced: Hide the rows that would be
  hidden by jquery.makeCollapsible with CSS to save us some reflows
  and repaints. This doesn't work on browsers that don't fully support
  CSS2 (IE6), but it's okay, this will be done in JavaScript with old
  degraded performance instead.
* jquery.makeCollapsible: Allow the element to be hidden on initial
  toggle without removing and adding back the 'mw-collapsed' class.
  This wasn't a performance issue in the past, but now it would
  cause the newly added CSS rules to have to be recalculated (although
  browsers seem to optimize it and avoid repaints at least).

Bug: 51749
Change-Id: I3823c2a67d524e6598e2437e1dd065659d1c7e41
resources/jquery/jquery.makeCollapsible.js
resources/mediawiki.special/mediawiki.special.changeslist.enhanced.css