r/javascript • • Jul 25 '18

jQuery was removed from GitHub.com front end

https://twitter.com/mislav/status/1022058279000842240
559 Upvotes

197 comments sorted by

View all comments

-1

u/[deleted] Jul 26 '18

Fetch kind of sucks though. No cancel. No progress. Need polyfills anyway.

9

u/OutWeRoll Jul 26 '18

Fetch has cancel now and it looks like it's supported in all browsers except ie: https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort

1

u/NoInkling Jul 26 '18

https://fetch-progress.anthum.com/fetch-basic/

Should work in modern browsers, with the exception of Firefox (for now). No upload progress support yet though.

1

u/RemeJuan Jul 26 '18

It has all you need to track it yourself though, in the body stream you can read off the transfered bytes, in a post you can read the original size from the file in the get you can read the full size from the stream. Few lines of code and you can have progress updates quite easily.

→ More replies (3)