Hacker GitHub

← All repos

browserstate/history.js

View on GitHub ↗ ★ 10,642 JavaScript

History.js gracefully supports the HTML5 History/State APIs (pushState, replaceState, onPopState) in all browsers. Including continued support for data, titles, replaceState. Supports jQuery, MooTools and Prototype. For HTML5 browsers this means that you can modify the URL directly, without needing to use hashes anymore. For HTML4 browsers it will revert back to using the old onhashchange functionality.

12 mentions on Hacker News by 11 people: 2 stories, 10 comments · first 2011-03-07 · latest 2017-09-12

Mentions per year 12 mentions · busiest year 2012 (6)
20082026
  1. I just stumbled on a note from the abandoned project [History.js]( https://github.com/browserstate/history.js/ ): > Despite History.js being one of the most popular JavaScript libraries there is, and has been used by even…
  2. …The old way, that still works: https://github.com/asual/jquery-address The better way, preferred: https://github.com/browserstate/history.js or https://github.com/defunkt/jquery-pjax... . not sure which is better to be honest. Feel free to…
  3. …with a nice polyfill[1] [0]: https://developer.mozilla.org/en-US/docs/DOM/Manipulating_th... [1]: https://github.com/balupton/history.js
  4. You should check this out: https://github.com/balupton/History.js
    comment by Skoofoo · 2012-10-21 · in Single page apps in depth (new free book)
  5. I recently came across history.js https://github.com/balupton/History.js/ which will use pushState where supported and falls back to hashbangs otherwise. It was overkill for my project, (we were already relying on several other advanced…
    comment by nthitz · 2012-05-30 · in It's About The Hashbangs
  6. …a modern web app to deal with location.hash fallback and pushState, replaceState etc is to use https://github.com/balupton/History.js . Comments/Corrections are welcome.
    comment by xpose2000 · 2012-02-21 · in Twitter to move away from Hashbangs
  7. Would be cool if you added pushState or /#/ history. You can for example use history.js: https://github.com/balupton/history.js
  8. …through AJAX get tricky when you can't access the container frame. Maybe look into history.js ( https://github.com/balupton/History.js/ ) and see if it works in a Facebook app?
    comment by LocalPCGuy · 2012-01-08 · in Bootstrap for Facebook apps
  9. Try this : https://github.com/balupton/History.js
    comment by lazylland · 2011-07-03 · in Nobody Understands REST or HTTP
  10. …and degradation with less effort. This article goes into the issues and the alternatives: https://github.com/balupton/history.js/wiki/Intelligent-Stat...
    comment by balupton · 2011-03-07 · in JavaScript and URLs