Open neon64 opened 8 years ago
For now, to enable pace on fetch, I have to do something like:
global.fetch = undefined;
require('whatwg-fetch');
const fetch = global.fetch;
great library!
but, tried h0ward's method to enable fetch
tracking, but doesn't work.
any plan to support fetch
tracking in future??
are there any plans to support fetch? would love to see that!
Anyone? :smiley:
Ok. I managed to workaround it for browsers. 😁 The key is to force polyfilling fetch
inwindow
(global object in the web browsers) so that it falls back using XMLHttpRequest
💯
<script>window.fetch = undefined;</script>
<script src="https://unpkg.com/whatwg-fetch@latest/dist/fetch.umd.js"></script>
Shocked to see this issue is from 2016 and nothing has been done about it. :(
Shocked to see this issue is from 2016 and nothing has been done about it. :(
I think the same. Just migrated all my $.ajax calls to fetch and I'm missing this feature a lot...
any updates?
This would help the adoption of the new 'standard' to set to replace XMLHttpRequest.
The only issue is at the moment there aren't any progress events from fetch. However this should change with streams. For now I think it would be possible to copy the naive (without progress events) implementation for XMLHttpRequest.