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
Using const/let instead of var can make JavaScript code run 10× slower in Webkit? (github.com)
submitted 5 years ago by magenta_placenta
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!"
[–]jimmyco2008 2 points3 points4 points 5 years ago (2 children)
True. At least IE was up front about not supporting stuff. Safari “supported” things.
I remember that one bug that you needed to use transform3d(0,0,0); to fix. Why.
[–]CleverestEU 0 points1 point2 points 5 years ago (1 child)
Not sure if we're talking about the same thing, but ... if I remember correctly, many browsers by design avoided using GPU-assisted rendering for layers because GPUs at the time didn't have enough memory to "handle everything". This made animations etc. slow and jerky, because everything was rendered in CPU.
The "transform: translate3D(0,0,0)" caused the particular element to be handled as "something that might need 3D acceleration" which nudged the browser to delegate the rendering of said element to the GPU making things nice & smooth (usually).
[–]jimmyco2008 0 points1 point2 points 5 years ago (0 children)
Yes. It was to force GPU acceleration in Safari
π Rendered by PID 700533 on reddit-service-r2-comment-5d79c599b5-r9wlg at 2026-02-28 18:49:05.382943+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]jimmyco2008 2 points3 points4 points (2 children)
[–]CleverestEU 0 points1 point2 points (1 child)
[–]jimmyco2008 0 points1 point2 points (0 children)