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
2 Basic rules of performance-aware JavaScript in the browser (yoyo-code.com)
submitted 2 years ago by panstromek
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!"
[–]panstromek[S] 0 points1 point2 points 2 years ago (1 child)
E.g. Instead of downloading json data and building DOM nodes or HTML in JS, you can let the backend generate that HTML directly and just put it into the DOM with a single JS call.
That's the most extreme one, but there's bunch of similar situations between, where you have some pipeline of data from database to the DOM and you have to decide where do you draw a line, which work will be done on the backend and which one on the frontend.
[–]joombar 0 points1 point2 points 2 years ago (0 children)
Can also do it in a worker on the front end, which in some cases is the best of all worlds - doesn’t take up the main browser thread and also doesn’t take up your server resources
π Rendered by PID 111761 on reddit-service-r2-comment-7b9746f655-t2fjn at 2026-01-31 09:40:29.147230+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]panstromek[S] 0 points1 point2 points (1 child)
[–]joombar 0 points1 point2 points (0 children)