- From: Morantron <notifications@github.com>
- Date: Tue, 27 Jun 2017 01:00:46 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 27 June 2017 08:01:25 UTC
@jakearchibald I have some proof on concept in this repo https://github.com/morantron/poor-mans-cancelable-fetch, that I could be turned into a FetchController polyfill. > Shame it won't work in contexts that don't allow workers. At least in a browser context, [worker support](http://caniuse.com/#search=worker) is pretty much everywhere. The _hack_ allows you to cancel a browser's native fetch request. So for this approach to work you need to have both [fetch](http://caniuse.com/#search=fetch) + [worker](http://caniuse.com/#search=worker), which yields all browsers except IE11, and Opera Mini. In those cases, you can abort an underlying XHR request if using a polyfill. Outside of the browser context, I guess there is an underlying layer that allows you to abort network requests? :thinking: Do you think it could be a separate polyfill or should it be included in this same fetch polyfill? I'd be happy to contribute :raised_hands: -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/447#issuecomment-311283425
Received on Tuesday, 27 June 2017 08:01:25 UTC