title: $.mobile.changePage is not loading next dynamic page properly
body: <p>I am developing windows mobile 7 application using jQuery mobile and PhoneGap(1.9.0). I have multiple html pages in application  and data in all pages is loaded via JSON parsing and need storage of some data.  So I use localStorage for data storage(because windows browser not support database yet through phonegap). And in windows browser local storage is only working with phonegap's deviceready event. </p>
  
  <pre><code>document.addEventListener("deviceready", mymethod, false);
  
  function mymethod(){
  
  }
  </code></pre>
  
  <p>every thing is working fine except that when I navigating between the pages white screen come first and then new page will come . which look bad . </p>
  
  <p>I use <code>window.location.href='page2.html';</code>  (every method works fine but delay in navigating between pages)</p>
  
  <p>to navigate between screen . </p>
  
  <p>But when I use </p>
  
  <pre><code>$.mobile.changePage("page2.html");
  </code></pre>
  
  <p>then white screen will disappear but my deviceready method will not work and blank screen with some static data(header and footer ) will come. Please tell me where I am wrong. How should I use <code>$.mobile.changePage("page2.html");</code> and in next page my page is loaded with content from local Storage or from json parsing.  or use  <code>window.location.href='page2.html';</code> but without white flashy screen . </p>
  
  <p>I hope you all understand my question.<br>
  Is there any solution for this problem.</p>