2

I want to support ajax navigation by using jQuery and the onhashchange event. It looks like Ben Alman's hashchange plugin is outdated because it relies on jQuery browser detection, which is deprecated and not recommended.

I also found the history.js library but it uses HTML5 history API which I don't want to use because I want consistent behavior for all browsers.

What is the current best approach for implementing onhashchange support?

Community
  • 1
  • 1
Tzach
  • 12,889
  • 11
  • 68
  • 115
  • 2
    From [history.js](https://github.com/browserstate/history.js) homepage: *Aims: Provide a backwards-compatible experience for all HTML4 Browsers using a hash-fallback*. P.S. A list of good HTML5 polyfills can be found on the [Modernizr Github](https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills) – CodingIntrigue Apr 22 '14 at 06:59

0 Answers0