title: jQuery Mobile Router doesn't route the first page load
body: <p>I am using jQuery Mobile Router in a multi page setup.</p>
  
  <p>For some reason, the first page load isn't handled the way it should. I have a first page that jQuery Mobile uses as default page, but even if the user includes a hash that should trigger another route, it isn't caught by the router.</p>
  
  <p>The only way I've been able to resolve the issue, is by using this ugly hack:</p>
  
  <pre><code>$(document).one('pagebeforechange', function(event, data) {
      data.toPage = window.location.hash
  });
  </code></pre>
  
  <p>I am clearly doing something wrong, but where?</p>
  
  <p>The include order is: jQuery Mobile Router, jQuery Mobile and then my custom router setup.</p>
  
  <p>This didn't help, so I tried setting <code>autoInitialize</code> to <code>false</code> as described in <a href="https://github.com/azicchetti/jquerymobile-router/issues/12#issuecomment-8891981" rel="nofollow">issue 12</a> on jQuery Mobile Routers issue tracker. That didn't help either.</p>
  
  <p>Any suggestions?</p>