Busy indicator API

Andrew J. Buehler wanderer at fastmail.fm
Fri Jul 10 03:28:47 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 07/09/2015 at 06:22 PM, Eric Shepherd wrote:

> Jonas Sicking wrote:
> 
>> window.navigator.addBusyTask(promise);
>> 
>> would be great. The API can be called any time and any number of 
>> times. The API would run the spinner until all provided promises 
>> are resolved. So if it's called twice with different promises,
>> the spinner doesn't stop when one of the promises are resolved,
>> but rather when the last promise is resolved.
> 
> I love this idea. It makes it possible for lots of apps to start a 
> busy indicator, but in reality, they're all sharing one spinner up
> at the top of the screen, and that spinner keeps running until all 
> promises are resolved, at which point it goes away.

Would there be any way for the user to potentially tell what is keeping
the spinner running, if interested?

I'd prefer to avoid the possibility of a scenario where there's
something keeping such a spinner going perpetually, and I have no way of
telling what that something is. There are far too many pages that just
keep doing things in the background forever already, anyway... and it's
not always necessarily better to have the indication that they're doing
it, if they're never going to stop.

- -- 
  Andrew J. Buehler
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJVnzvvAAoJEASpNY00KDJrTfYQAIPPNwuFHOBC4dq73I4E9hDR
nSgqlIRpJe8R2/8OsoQyzxwYKpCNHPI5y32J2zG/sbUT1L/Cd2ouj0XCRroaJLbY
+/PT4sLKRd8uQrvLdxE3qaDxxHRx88lx43Qi/qp2DtZ+eWjyiqk1z2eWZwzS5Bwb
BhlaQr/rF+MxPRSPq2Ofcvgl8Z3AyP52AtcV3R9N2XF5OP+In5KODoy1r261RXnj
E8aHmRqZAJEWwHMU5jWbkHqKbDg3Qvw7oXjigmncK6c5xpmBNHKpcg1sOMWuSG7H
gYFmofPjHQ/O7DLKFcvKOeeRqfXELfCRD3TJhipsUKgwl9fK7899ChdUhBgqYqgm
7TB6rOjFZTsradxbRMOfHUXQ/scq5lSrOa+C1cLa3UrWg8pfv1TINg8d4mqX8jrF
bzYv2WUZbhRWb0Lm1qfGKvZQdI+n45TKLgUTnOI9OqclQ0Cl3byRXRMmFiN8aPEm
EfKqt5tWwHEiEiZ7O+HZymcv7rtyol7jPc1mHXyW6mj/JIVwqR9lw4ZsuG+QlG7f
4gkDIu6WT2z5s6uhiF7MWsTMtwQ/m0XreZcqUlTXaNyhOqDTsRADNuQsvLXEW5Rw
yHJVDnfCPFWOCGAFdCbB76Dc7Z/2xIVUaW6LvjHByu5LUf0ZpiPTQKRa+mgjiJL4
sxGQZ/Zr5YdHCJLNZjaT
=515t
-----END PGP SIGNATURE-----



More information about the firefox-dev mailing list