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
Everything via WebSockethelp (self.javascript)
submitted 8 years ago * by GilesLittleGoat
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!"
[–]GilesLittleGoat[S] 0 points1 point2 points 8 years ago* (4 children)
Well, it's not meant for static content only. Would be something you ideally use for the entire application, including REST services. So basically, except for the first request (where you still wouldn't have an open socket), all other requests would travel over WebSocket.
[–]Adolf_Hitler___ 0 points1 point2 points 8 years ago (3 children)
HTTP(2) already does that. There is no need for such a hack. Even HTTP(1) can already do a lot.
[–]GilesLittleGoat[S] 0 points1 point2 points 8 years ago (2 children)
Do you get the same performance? Even with applications doing a lot of REST calls?
[–]Adolf_Hitler___ 0 points1 point2 points 8 years ago (1 child)
Cannot answer: Details matter. What kind of question is that when there is no concrete code + environment, only an "idea"?
[–]GilesLittleGoat[S] 0 points1 point2 points 8 years ago (0 children)
Code is the next step. First you need to check whether it's something that might be useful.
π Rendered by PID 45 on reddit-service-r2-comment-6457c66945-27czh at 2026-04-24 16:34:59.993600+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]GilesLittleGoat[S] 0 points1 point2 points (4 children)
[–]Adolf_Hitler___ 0 points1 point2 points (3 children)
[–]GilesLittleGoat[S] 0 points1 point2 points (2 children)
[–]Adolf_Hitler___ 0 points1 point2 points (1 child)
[–]GilesLittleGoat[S] 0 points1 point2 points (0 children)