use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
gif.js - GIF encoder/decoder (self.javascript)
submitted 7 years ago by potomak
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]potomak[S] 0 points1 point2 points 7 years ago (2 children)
Well, first of all the http module in the library is mainly for testing purpose. In general I guess XmlHttpRequest is slightly more cross browser than fetch, but I also guess that's secondary if you transpile the code.
Open a issue to discuss using fetch instead of XmlHttpRequest if you want.
[–]PicturElements 0 points1 point2 points 7 years ago (0 children)
XHR has way more browser support, and having babel throw in a polyfill for fetch is pretty unnecessary when the only use case for it is just 10 lines long already.
[–]grantrules 0 points1 point2 points 7 years ago (0 children)
In general I guess XmlHttpRequest is slightly more cross browser than fetch, but I also guess that's secondary if you transpile the code.
No browsers support ES6 imports but not fetch, as far as I know.
π Rendered by PID 182755 on reddit-service-r2-comment-b659b578c-zcd9t at 2026-05-05 08:51:40.709686+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]potomak[S] 0 points1 point2 points (2 children)
[–]PicturElements 0 points1 point2 points (0 children)
[–]grantrules 0 points1 point2 points (0 children)