User talk:Majr/Archive 15

Collapsible stuff
Instead of maintaining a custom-built solution, is there any reason not to recommend the use of ? There's no additional overhead involved with it, since the code's included in core and is thus already sent on every page request. 「 ディノ 奴 千？！ 」? · ☎ Dinoguy1000 16:01, 17 November 2015 (UTC)


 * Yeah, mw-collapsible sucks, which I why I originally wrote an updated version based on the script that mw-collapsible was meant to replace. Its main issue is it purely uses JS to collapse elements, which means there is a large page jump once the page finishes loading where all the elements collapse, this is especially problematic for anchor links, as you will end up further down the page than the anchor, as the collapsed elements above it have moved the rest of the page up. This also makes the page a lot slower to load if there are a lot of things on the page to collapse (you may recall the issue with the recent changes being slow when it was first changed to use mw-collapsible).
 * Other issues are:
 * It doesn't have the ability to specify the collapse button to be inline (we use that a fair bit).
 * It uses actual links for the collapse toggle, which is semantically poor and can be confusing to users (middle-clicking a collapse toggle will open the current page in a new tab rather than do anything sensible, for example). To be fair we use a span styled to look like a link, rather than using a button, so it's not much better off semantic wise, but at least it won't do anything but toggle the collapsing.
 * It uses silly low performance jQuery animations which don't work properly.
 * –Majr 01:58, 18 November 2015 (UTC)