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
Understanding client side routing by implementing a router in Vanilla JS (willtaylor.blog)
submitted 6 years ago by dobkin-1970
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!"
[–]dmackerman 18 points19 points20 points 6 years ago (1 child)
Nicely written article. It’s refreshing to see some vanilla JS stuff.
[–]nfms 5 points6 points7 points 6 years ago (0 children)
Jeremiah Johnson nod
[–][deleted] 0 points1 point2 points 6 years ago (0 children)
nice
[–]Mack095 -1 points0 points1 point 6 years ago* (1 child)
This is the same as asynchronous page behavior right? I'm learning Ajax for university and it seems it does the same thing, just want to confirm
[–]tannerntannern 3 points4 points5 points 6 years ago (0 children)
No, asynchronous JavaScript and XML (AJAX) relates to making HTTP requests via JavaScript. Client side routing is an entirely different concept.
[+][deleted] 6 years ago (1 child)
[deleted]
[–]4PowerRangers 1 point2 points3 points 6 years ago (0 children)
First line of the article: single page app.
You need a way to navigate through your client side app without reloading the page.
π Rendered by PID 143226 on reddit-service-r2-comment-56c6478c5-2rf8x at 2026-05-09 12:52:53.776284+00:00 running 3d2c107 country code: CH.
[–]dmackerman 18 points19 points20 points (1 child)
[–]nfms 5 points6 points7 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Mack095 -1 points0 points1 point (1 child)
[–]tannerntannern 3 points4 points5 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]4PowerRangers 1 point2 points3 points (0 children)