title: Max size of location.hash in browser
body: <p>I would like to use the <code>location.hash</code> to encode the state of my client app, such that users can easily bookmark and/or share the app in its complete state using the URL.</p>
  
  <p>There are a number of (outdated) topics on the max length of a url, particularly limits in internet explorer. However it is not clear what the maximum size of the <code>location.hash</code> is. Because the hash only exists in the client, limitations of http or servers are not relevant.</p>
  
  <p>I made a simple jsfiddle to test this: <a href="http://jsfiddle.net/Jz3ZA/" rel="noreferrer">http://jsfiddle.net/Jz3ZA/</a>. In both Chrome and Firefox (Ubuntu 12.04) hashes up to 50K seem to work. Does this mean I could use them to store state or am I overlooking other limitations?  </p>