Page MenuHomePhabricator

Slow response of new preferences UI: Shows content of all tabs on a single page for a moment
Open, Needs TriagePublic

Description

Whenever opening preferences, it loads all the tabs in one and after some time gets fixed automatic (video: https://ptpb.pw/oORB.mp4 link dead since ptpb has been shut down).

I am using Opera Mini v.47.3.2249.130976 for android on Moto e2 (Android 6.0).

Event Timeline

1997kB created this task.Oct 3 2018, 5:30 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 3 2018, 5:30 PM
Aklapper renamed this task from slow response of new preferences ui to Slow response of new preferences UI: Shows content of all tabs on a single page for a moment.Oct 3 2018, 5:35 PM
Tgr added a subscriber: Tgr.Oct 3 2018, 5:46 PM
< tgr> do you know what connection speed you have?`
< [1997kB]> ~5mbps
< andre__> I can confirm that bug.
< andre__> tgr: Firefox on Fedora
< [1997kB]> also it happens on Chome for Android.
stjn added a subscriber: stjn.EditedOct 3 2018, 7:05 PM

≈3-5 second delay for me on Firefox 62 (Windows) before new UI starts showing me only the current tab. (Don’t have any issues with connection, btw.)

Yes, the load performance of this page was an existing problem before the UI standardisation conversion, and we discussed it as part of T203838 which improved the state to an acceptable level in our opinion compared to the previous state. It's not good, but this isn't specific to the "new" page. The only way to avoid this would be to paint the JS-ful and non-JS versions of the page entirely differently, which is pretty against MW conventions in terms of progressive enhancement.

Tgr added a comment.Oct 3 2018, 10:00 PM

I think there are easy solutions for that: make sure the client-js/client-nojs classes are available very early on (if that's not in the case already), put display: none on the tabs other than the first in .client-js.

stjn added a comment.EditedOct 3 2018, 10:06 PM

Don’t know the code exactly, but shouldn’t it be possible to do the hiding part correctly before doing something with every widget or whatever is blocking the performance? For people like the task author, showing first tab for 30 seconds or so (especially if he would click to ‘Beta’ link) still will be a visible performance bug.

1997kB updated the task description. (Show Details)Apr 11 2019, 10:18 AM

Cmt: Surprisingly this is no more happening.