title: Page refresh from address bar with #hash
body: <p>Situation:</p>
  
  <p>url: <a href="http://mydomain.com/test.html#somehash" rel="nofollow">http://mydomain.com/test.html#somehash</a></p>
  
  <p>test script:</p>
  
  <pre><code>$(document).ready(function () {
      console.log("page initiated");
      if (window.location.hash) {
          console.log("hash changed (if-statement)");
      }
  
      $(window).on("hashchange", function () {
          console.log("hash changed (on statement)");
      });
  
  });
  </code></pre>
  
  <p>The script can also be found on <a href="http://jsfiddle.net/djwave28/dcVu8/2/" rel="nofollow">fiddle</a>, but the environment is not suitable to display the behavior.</p>
  
  <p>The problem I get is when I click on the browser addressbar and hit enter without any changes. </p>
  
  <ol>
  <li><p>When the browser url has a hashtag, the page is not re-initiated. <code>document.ready</code> does not get fired and I do not get any console messages.</p></li>
  <li><p>When the browser url does not have a hashtag, the page does get re-initiated and <code>document.ready</code> is fired. </p></li>
  </ol>
  
  <p>Does anybody have an explanation for this behavior and can it be caught so that in situation 1 the page does get reloaded?
  Is there documentation somewhere, because I can't seem to find any?</p>