Last modified: 2014-07-25 16:47:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T41035, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39035 - Vector: Remove slow collapsibleNav module
Vector: Remove slow collapsibleNav module
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
All All
: Normal major with 1 vote (vote)
: 1.24.0 release
Assigned To: Ori Livneh
: performance
Depends on:
Blocks: 44881 51170
  Show dependency treegraph
 
Reported: 2012-08-04 11:18 UTC by Niklas Laxström
Modified: 2014-07-25 16:47 UTC (History)
13 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Niklas Laxström 2012-08-04 11:18:54 UTC
On translatewiki.net I see collapsibleTabs and collapsibleNav taking over 20 ms each on page load to do their work. Also on Wikipedia, but a bit less slow.
Comment 1 MZMcBride 2013-12-02 07:52:57 UTC
Niklas: is this still an issue?
Comment 2 Niklas Laxström 2013-12-02 08:37:28 UTC
On one random page load at https://translatewiki.net/wiki/User:Nike

$.fn.collapsibleTabs took 102 ms 
mw.uls.init took 87 ms
CollapsibleNav took 48 ms.
Comment 3 Nemo 2014-02-06 11:53:49 UTC
From bug 51170:

(In reply to comment #7)
> Does anybody know what makes collapsible navs so effing slow or run so late
> on
> beta.wmflabs? Can it even send an event when it is ready? Or is someone going
> to remove it in a week?

(In reply to comment #8)
> Likely because there's an effing lot of extensions installed, many of which
> load and execute their own resources.
> 
> Core could send an event / fire a hook after collapsing the sidebar, if only
> someone implemented it. It might be easier to fix this by doing less absolute
> positioning in ULS instead (which would mean that the tooltip will be in the
> correct position automagically).

(In reply to comment #9)
> (In reply to comment #8)
> > Likely because there's an effing lot of extensions installed, many of which
> > load and execute their own resources.
> 
> Note that I was experiencing this bug on my own testwiki with almost no
> extensions as well; this largely depends on your computer's speed (how much
> time it takes it to render the page and execute other scripts, against the
> hardcoded 500/700 ms limit).
Comment 4 Gerrit Notification Bot 2014-05-03 11:19:46 UTC
Change 131259 had a related patch set uploaded by Nemo bis:
Remove collapsibleNav: performance cost too high

https://gerrit.wikimedia.org/r/131259
Comment 5 Gerrit Notification Bot 2014-05-04 01:03:33 UTC
Change 131259 merged by jenkins-bot:
Remove collapsibleNav: performance cost too high

https://gerrit.wikimedia.org/r/131259
Comment 6 Nemo 2014-05-04 05:50:15 UTC
Niklas, how slow is collapsibleTabs now for you and what consequences does it have?

I wonder if that should be split to its own bug and this one be closed, as collapsibleTabs has lower effects: among other things, it should almost never be triggered for most users on a wiki by default (with English l10n on a Wikipedia as anon, it kicks in around 750 px of width, to hide "view history").

> > this largely depends on your computer's speed (how much
> > time it takes it to render the page and execute other scripts, against the
> > hardcoded 500/700 ms limit).

(In reply to Gerrit Notification Bot from comment #5)
> Change 131259 merged by jenkins-bot:
> Remove collapsibleNav: performance cost too high

This was the main [[w:FOUC]] and slowness vector.
Comment 7 Derk-Jan Hartman 2014-05-04 09:10:01 UTC
wow, so communities complained about this for 4 years, and now we just kill it within the span of a day ? Can I be surprised ?


I never really like the afterthought of how this was implemented. However, it is one of those areas that could easily have been improved probably. Moving the classes and some of the dom manipulation into the actual skin, removing the tabindex manipulation (which was pointless anyways) and probably using a less complicated delegate.
Comment 8 Krinkle 2014-05-04 13:38:05 UTC
Please don't remove collapsibleTabs the same way. I think both of these components address valid UX issues.

If the UX testing data we gathered in the usability initiative has been of any value, the removal of collapsibleNav is going to be a notable UX regression. Especially the long language list on some pages, and the overall visual impact of them was quite big (they take up too much space by default, and attract too much attention, hiding them by default removed a lot of clutter).

However I agree, the way it was implemented as sufficiently badly performant that it's OK to remove for now, but we really should invest in re-implementing this ASAP.

However I don't think we should remove collapsibleTabs the same way. That one isn't too bad. It surely can be improved, but I think it is worth the minor perf hit compared to the value it adds.
Comment 9 Nemo 2014-05-04 17:11:52 UTC
(In reply to Krinkle from comment #8)
> If the UX testing data we gathered in the usability initiative has been of
> any value

(which we can't know because we've been waiting over 4 years for it to be published in anonymised form as promised back then), <continue sentence>
Comment 10 Nemo 2014-05-17 09:07:08 UTC
MatmaRex expected a lot of bugs would need to be closed, but I only found a handful (still a lot of things which are now better): https://bugzilla.wikimedia.org/buglist.cgi?list_id=314808&longdesc=bug%2039035&longdesc_type=substring&query_format=advanced
I skimmed about 400 bugs with very generic searches because keywords were unpredictable, but I may have missed something.
Comment 11 Andre Klapper 2014-05-17 12:52:09 UTC
Thank you Nemo for going through these tickets!
Comment 12 Technical 13 2014-05-19 13:31:50 UTC
So, this is why I no longer have the ability to collapse the sections of the sidebar I do not want to see.  This has not improved my page load times at all (it has actually made them worse on my mobile device in desktop mode).  This change is now also wasting valuable volunteer time having to scroll down through pages of unwanted links to get to the p-tb to get to the tools that are needed to work on pages (like reflinks and the anti-vandal tools).  I have no issue with these sections not being collapsed by default if you think it will help some people with some historic version of some browser, but for everyone else, we should have the ability to collapse these sections and not have our workflows interrupted and broken.
Comment 13 Alex Monk 2014-05-21 15:20:41 UTC
(In reply to Derk-Jan Hartman from comment #7)
> removing the tabindex manipulation (which was pointless anyways)

#2014051610008141 suggests otherwise
Comment 14 Helder 2014-05-21 15:51:01 UTC
(In reply to Alex Monk from comment #13)
> (In reply to Derk-Jan Hartman from comment #7)
> > removing the tabindex manipulation (which was pointless anyways)
> 
> #2014051610008141 suggests otherwise

What is this number?
Comment 15 Alex Monk 2014-05-21 15:54:34 UTC
It's a ticket in the info-en::Tech issues OTRS queue
Comment 16 Alex Monk 2014-05-22 10:57:49 UTC
Which I now have permission to share - is from a user who, due to pains in his right forearm, tries to use 'tab' to navigate where possible. The search box went from being the first tabindex (set by collapsibleNav) to being one of the last on the page.
Comment 17 Alex Monk 2014-05-22 11:01:35 UTC
Gerrit change #134801
Comment 18 Gerrit Notification Bot 2014-07-25 16:44:58 UTC
Change 145911 had a related patch set uploaded by Krinkle:
Vector: Add back collaspibleNav module

https://gerrit.wikimedia.org/r/145911

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links