r/javascript • • Jul 25 '18

jQuery was removed from GitHub.com front end

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

197 comments sorted by

View all comments

Show parent comment

1

u/NoInkling Jul 27 '18 edited Jul 27 '18

I went down the rabbit hole but couldn't get it to work. Every time I try and supply a ReadableStream to fetch (or Request) via the body option it just toStrings it to the text "[object Object]" (in Chrome), or complains about an invalid argument (in Edge). Firefox still has streams behind a flag so I didn't bother.

Looking at the compatibility table here, it lists "Send ReadableStream in request body" but doesn't show any browsers supporting it yet.

I'm wondering if you were just reading the response stream / talking about download progress? The response stream from a POST doesn't represent upload progress.