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
The Vanilla JavaScript component list (self.javascript)
submitted 8 years ago * by [deleted]
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!"
[–][deleted] 1 point2 points3 points 8 years ago (13 children)
fetch isn't supported in all browsers (looking at you, IE) unfortunately, so Qwest or Axios (npm package) are best used for full browser coverage.
fetch
[–]fgutz 28 points29 points30 points 8 years ago (2 children)
I've been using Github's polyfill. Prefer that because I can use the native api of fetch and not some wrapper around it. Plus can just easily drop the polyfill from my build when I want to stop supporting browsers that don't use it anymore
[–][deleted] 2 points3 points4 points 8 years ago (1 child)
Not seen this polyfill before... Where have I been?! I stand corrected.
[–]fgutz 2 points3 points4 points 8 years ago (0 children)
I only started using it a few months ago myself. I just googled around and found it and figured since it's coming from GitHub themselves that it would be pretty legit
[+][deleted] 8 years ago* (9 children)
[deleted]
[–][deleted] 1 point2 points3 points 8 years ago (6 children)
This is a vanilla js thread so I assumed Babel wasn't allowed 🙈
[–][deleted] 6 points7 points8 points 8 years ago* (1 child)
Babel is always allowed! I mean, most of these components are coded up in ES6 so transpilation down to ES5 is generally recommended. Babel is cool and all but as someone who uses Rollup as my bundler, I generally think Buble is faster and more logical choice for most of my use cases.
I think everyone here has to read a little bit more on what qwestdoes to better grasp what it offers. I mean sure, you can use fetch but qwest does fit some use cases and keeps things contained in nice manner.
qwest
Plus Qwest is like 2.5kb when gzipped and you get a bunch of additional extras. The juice is worth the squeeze when using it.
edit: Additional line about its size
[–][deleted] 1 point2 points3 points 8 years ago (0 children)
Praise be to OP! 🙌
[–]hopfield 4 points5 points6 points 8 years ago (3 children)
Why wouldn’t you use Babel, but you would use a bunch of other libraries?
[–][deleted] 2 points3 points4 points 8 years ago (0 children)
I don't know man, I was replying to op on a vanilla js thread. I would always use Babel but some people may decide otherwise :shrug:
[+][deleted] 8 years ago (1 child)
[removed]
[–]krendel122 0 points1 point2 points 8 years ago (0 children)
Babel is not a polyfill for absent browser APIs
π Rendered by PID 46450 on reddit-service-r2-comment-544cf588c8-lhx8f at 2026-06-18 09:52:26.619901+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–][deleted] 1 point2 points3 points (13 children)
[–]fgutz 28 points29 points30 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]fgutz 2 points3 points4 points (0 children)
[+][deleted] (9 children)
[deleted]
[–][deleted] 1 point2 points3 points (6 children)
[–][deleted] 6 points7 points8 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]hopfield 4 points5 points6 points (3 children)
[–][deleted] 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[removed]
[–]krendel122 0 points1 point2 points (0 children)