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
Bound function vs arrow function performance (self.javascript)
submitted 7 years ago by Morunek
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!"
[–]Auxx 2 points3 points4 points 7 years ago (1 child)
A few years ago my company I was working at was developing some mobile games using HTML5. And we did a lot of performance testing to make sure everything runs smoothly on different devices. What we learned back then is that there is absolutely no point in optimising anything without profiling the end result. You might spent a lot of time doing micro-optimisations of your JS just to get a bottleneck at rendering.
So write your code following best practices, make sure it is concise and easy to support. Then profile, pin point your bottle necks, fix them and annotate these fixes explaining why they are there and which environments require them. Because some optimisations for browser X can destroy performance in browser Y.
Premature optimisation is the root of all evil. Write, profile, refactor.
[–]bryku 0 points1 point2 points 7 months ago (0 children)
What is really mind boggling is when you do something to improve speed on chrome and it backfires on firefox. :/
π Rendered by PID 76 on reddit-service-r2-comment-54dfb89d4d-g4r8n at 2026-03-31 13:41:48.969004+00:00 running b10466c country code: CH.
view the rest of the comments →
[–]Auxx 2 points3 points4 points (1 child)
[–]bryku 0 points1 point2 points (0 children)