Re: [fetch] XHR option to trigger busy indicators (#19)

What happens if I have composite tasks with variable weighting? E.g. I have tasks to download and process and image, and I want to assign a higher weight to download stage because I know that (in absolute time) that will take much longer? How do I script that with above promise API?

Note that Apple recently revamped their API for progress indicators: https://developer.apple.com/videos/wwdc/2015/?id=232 - lots of good examples to think through there.

On a slightly different note.. 
- Not all UA's have a progress bar indicator, some use indeterminate indicators only
- If we expose an API we should make both progress and indeterminate cases possible
- We need to think through how such indicators overlap with browser triggered events... 
  - Is this a separate indicator from the one browser uses?
  - Can/should the developer be able to control the browser indicator? E.g. call stop(), or some such, during page load to hide the indicator? (Not as crazy as it sounds)
  - Do the current browser indicators even make sense? e.g. onload is an anti-pattern.

Related, but on-topic rant: https://www.igvita.com/2015/06/25/browser-progress-bar-is-an-anti-pattern/ 


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/19#issuecomment-119266743

Received on Tuesday, 7 July 2015 16:55:27 UTC