The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
jQuery HashChange
jQuery interface to browser hashchange events, providing implementation for many browsers that do not support hashchange.
Usage is simple - just register for the hashchange event on the window:
$(window).hashchange(function() { updateState(location.hash) });Note that, unlike the jquery history plugin, a hashchange event is NOT generated on document ready - only if the hash changes after page load. In most cases it is still desirable to set state based on the initial hash, so the following pattern is useful:
$(document).ready(function() {
$(window).hashchange(function() { updateState(location.hash) });
updateState(location.hash);
});