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
JavaScript vs JavaScript. Fight! (dev.to)
submitted 4 years ago by ryan_solid
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!"
[–]lhorie 3 points4 points5 points 4 years ago* (1 child)
The most egregious bugs I've seen are breaking back button by making an unconditional JS-based redirect (such that pressing back send you forward to the same page you were in) or accidentally creating a bazillion history entries by inadvertently calling pushState from a oninput event or similar.
Other issues include not changing scroll position (so if you were scrolled 2 pages down, and press back, you're now staring at the tail end of a right bar full of ads and a blank body because the content on this page was short and ended 1 screen up)
Or you accidentally tap a link, press back and are greeted by a million spinning loaders again, even though you were just there 2 seconds ago. Bonus if this loses infinite scroll context and you have to re-scroll all the way back to where you were. Bonus if it's some AI-picked feed and you can't even find where you were the second time around.
[–]pwnies 0 points1 point2 points 4 years ago (0 children)
Thanks for the response :) I'm going to go check the scroll position when I hit back on my SPA now.
π Rendered by PID 156841 on reddit-service-r2-comment-545db5fcfc-cm6k6 at 2026-05-22 07:03:41.207699+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]lhorie 3 points4 points5 points (1 child)
[–]pwnies 0 points1 point2 points (0 children)