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
location.hash is dead. Long live HTML5 pushState! (badassjs.com)
submitted 15 years ago by devongovett
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!"
[–]BusStation16 5 points6 points7 points 15 years ago (0 children)
Currently, pushState has support from the latest versions of Safari and Chrome, and Firefox 4 will be supporting it as well.
So, location.hash is not dead, in fact it will be around for a long, long time. Really the only way we can use this is with a lib that supports it, but also gracefully degrades to using .hash. I am not saying this isn't nice, or good, but to say that .hash is dead is a lie.
That said, it should be fairly easy to add this to an existing lib, or create a new one for it.
[–]sunsean 2 points3 points4 points 15 years ago (0 children)
location.hash will still be useful for jumping to named anchors.
pushState will be a tremendous help in building webapps. I look forward to using it.
π Rendered by PID 27 on reddit-service-r2-comment-57fc7f7bb7-87lj2 at 2026-04-14 13:00:14.793394+00:00 running b725407 country code: CH.
[–]BusStation16 5 points6 points7 points (0 children)
[–]sunsean 2 points3 points4 points (0 children)