Page MenuHomePhabricator

Don't show loading bar immediately
Closed, ResolvedPublic3 Estimated Story Points

Description

When you manually hit the "refresh" button, there's a progress bar that appears for a split second. Same when you load Special:GlobalWatchlist initially. The best practice in terms of performance perception is to avoid displaying progress bars for processes that are short most of the time. You should wait until a few seconds of waiting period have passed before displaying a progress bar. This way the majority of users who have a fast internet connection won't see the progress bar at all. Progress bars draw attention to the wait, and makes it feel longer when it's actually short.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
DannyS712 set the point value for this task to 3.
DannyS712 moved this task from Unsorted to Next on the User-DannyS712 board.

For the non-Vue version, can use setTimeout and clearTimeout. For the Vue version, not quite sure, since the display logic is to show the loading bar when the content hasn't loaded, and there is no manual jQuery show() and hide(). But, since the Vue version is not ready for use yet, and the loading display is definitely not ready yet, for this task will focus on the jQuery version only.

Change 644505 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/extensions/GlobalWatchlist@master] Wait a second before showing loading bar on first load

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

Change 644505 merged by jenkins-bot:
[mediawiki/extensions/GlobalWatchlist@master] Wait a second before showing loading bar on first load

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

Change 647079 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/extensions/GlobalWatchlist@master] Fix delay in showing loading bar on first load

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

Change 647079 merged by jenkins-bot:
[mediawiki/extensions/GlobalWatchlist@master] Fix delay in showing loading bar on first load

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

DannyS712 claimed this task.
DannyS712 set Final Story Points to 4.
DannyS712 moved this task from In progress to Done on the MediaWiki-extensions-GlobalWatchlist board.