Page MenuHomePhabricator

Delay progress bar for a few seconds in IPInfo widget [S]
Closed, ResolvedPublic

Description

Only show the progress bar in the IPInfo widget after a couple of seconds, to avoid a flash of progress bar when the response time is short.

Event Timeline

ARamirez_WMF renamed this task from Delay progress bar for a few seconds in IPInfo widget to Delay progress bar for a few seconds in IPInfo widget [S].Oct 6 2021, 4:43 PM

☝️ We estimated this as a small but weren't sure if it will actually be an issue and so decided to punt on it until we either had the instrument(s) telling us that it was or we had a little extra bandwidth.

Bringing this into the current workboard because I think we have a little extra bandwidth...

Did we agree on a time to delay it by?

Change 753013 had a related patch set uploaded (by STran; author: STran):

[mediawiki/extensions/IPInfo@master] [WIP] Delay displaying progress bar

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

Ah, I missed the subtask. I suppose even though the instrumentation is in place, we don't really have any user data yet. I'd be happy to go with the delay in the patch (250ms) and file another task for reviewing this once we have data (i.e. post-deployment).

@STran @Prtksxna How does that sound?

@STran @Prtksxna How does that sound?

Sounds good, Thalia!
I know this might be a ton of work for something so simple, but I had worked out some numbers and situations for Who-Wrote-That that might apply here: T231115#5475342

Are we waiting until the results of T267235: Add performance instrumentation to IP Info extension [M] to do anything more complicated than a fixed delay? We could do 100ms like T231115#5475342 proposes to start with.

I think we should move ahead with this. We can change the delay to 100ms now and file a task for revisiting the delay based on the user data.

@Prtksxna is that OK? @STran would you mind filing the follow-up?

I think we should move ahead with this. We can change the delay to 100ms now and file a task for revisiting the delay based on the user data.

Sounds good 👍🏾

Change 753013 merged by jenkins-bot:

[mediawiki/extensions/IPInfo@master] Delay displaying progress bar

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

I do see the delay progress bar for a few seconds in IPInfo widget, for a brief moment.