title: after jQuery mobile pageShow silentscroll, page jumps to top
body: <p>We have a basket page, where there are the products, and then the shipping methods. This is a <code>jQuery mobile</code> site.</p>
  
  <p>What I want to achive, that if a shipping method selected, then if there is a page reload, jQuery mobile jumps to a <code>div</code> to the shipping methods.</p>
  
  <p>Here is the code, what scrolls to the shipping methods. This is an inline script.</p>
  
  <pre><code>$(document).on("pageshow", function (e, ui) {
      $.mobile.silentScroll($('#kosar').offset().top);
  });
  </code></pre>
  
  <p><strong>Expected result</strong>: on page refresh, the window scroll to the <code>#kosar</code> div.</p>
  
  <p><strong>Current result</strong>: page scrolls to the <code>#kosar</code> div, but immediatly scroll to the top of the page.</p>
  
  <p>What we discovered, if some error is occures after the <code>silentScroll</code>, the window is not jump back to the top of the page. So it seems, something after the <code>pageshow</code> scrolls it to back, but we do not know, what.</p>
  
  <p>For example:</p>
  
  <pre><code>$(document).on("pageshow", function (e, ui) {
      $.mobile.silentScroll($('#kosar').offset().top);
      undefined_function(); //This function is not exists
  });
  </code></pre>
  
  <p>Here are the non working, and "working" examples:</p>
  
  <p><strong><a href="http://m.lay.hu/so.php" rel="nofollow">Here is a live example.</a></strong> When you refresh the page, you will see for a second the big red text, and immediatly after that you will be taken to the top of the page.</p>
  
  <p><strong><a href="http://m.lay.hu/so2.php" rel="nofollow">Here is the example with error.</a></strong></p>
  
  <p>I've tested it in FF Developer Edition. With Chrome, you need to resize your browser to a littlebit smaller, and refresh some times to see the scrollbar how jumping to bottom and up.</p>
  
  <p>How can I prevent this annoying scroll to top? </p>