title: Hash states without "popstate"
body: <p>I'm trying to load different content with JavaScript on a page, depending on its hash tag. However, it should also work in older browsers which do not support the <a href="https://developer.mozilla.org/en-US/docs/Web/Events/popstate" rel="nofollow">popstate</a> method.</p>
  
  <p>The problem is, that when looking at <code>window.location.hash</code> after I click on a link (e.g. <code>#newhashtag</code>) on the current page (e.g. <code>example.com/#currenthashtag</code>), on <code>document.ready</code> it still shows me the old hash tag. Only after clicking on a second link, the previous hash tag from the first link shows up in <code>window.location.hash</code>.</p>
  
  <p><strong>So, what is the easiest way to handle different hash states of a website without using popstate?</strong></p>