<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000"><span>Jonas Sicking wrote:</span><br>
<blockquote 
cite="mid:CA+c2ei_NSNhTwuuC70MMJMfeQNOVU7Uva2U6K7ARzVRc5sGL-Q@mail.gmail.com"
 type="cite">
  <pre wrap="">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.</pre>
</blockquote>
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.<br>
<br>
This is similar to how iOS does things, from a visual perspective. 
There's one spinner indicator that appears in the status bar at the top 
of the screen when any software is actively using the network. But this 
API suggestion is a really elegant idea for implementing it.<br>
<br>
<div class="moz-signature">-- <br><br>
Eric Shepherd<br>
Senior Technical Writer<br>
<a href="https://www.mozilla.org/">Mozilla</a><br>
Blog: <a href="http://www.bitstampede.com/">http://www.bitstampede.com/</a><br>
Twitter: <a href="http://twitter.com/sheppy">http://twitter.com/sheppy</a></div>
</body></html>