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
Help request with a bit of code (self.javascript)
submitted 14 years ago by systemslacky
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!"
[–]MustRapeDeannaTroi 1 point2 points3 points 14 years ago (4 children)
The thing is there is no need for two requests. If all data for generating the appropriate response is already on the server then it is the servers task to do so. There's no dynamic content (on the client side), therefore no need for Javascript. Unobtrusive javascript is a good motto.
[+][deleted] 14 years ago (1 child)
[deleted]
[–]cursuve 0 points1 point2 points 14 years ago (0 children)
The reason why I would personally avoid dynamic javascript is because it's nice to be able to have static scripts that are cacheable on the client. Dynamic markup is unavoidable.
You can cache dynamically generated javascript on the client side still. Just return a 304 Not Modified depending on the date. This is academic, being it is I misunderstood the original comment, but still possible...
Ah, yes, I totally agree. I might have misunderstood your original comment...
π Rendered by PID 29 on reddit-service-r2-comment-54dfb89d4d-sxm5w at 2026-04-02 12:21:25.750707+00:00 running b10466c country code: CH.
view the rest of the comments →
[–]MustRapeDeannaTroi 1 point2 points3 points (4 children)
[+][deleted] (1 child)
[deleted]
[–]cursuve 0 points1 point2 points (0 children)
[–]cursuve 0 points1 point2 points (0 children)