title: UIWebView getting stuck after webViewDidStartLoad
body: <p>Our iOS app has a Web View that is rendering pages from file: URLs. When the user touches an <code>&lt;A&gt;</code> element to switch pages, about 20% of the time, it gets stuck as follows:</p>
  
  <ol>
  <li>User taps <code>&lt;A&gt;</code> link</li>
  <li>We get WebView.shouldStartLoadWithRequest callback</li>
  <li>We get WebView.webViewDidStartLoad callback</li>
  <li>nothing happens after this</li>
  </ol>
  
  <p>The screen still shows the original page with the link on it. We can break the logjam in two ways:</p>
  
  <ol>
  <li>Rotate the device</li>
  <li>Tap the screen</li>
  </ol>
  
  <p>At that point, the page will immediately finish loading.</p>
  
  <p>We used the recipe from here:</p>
  
  <p><a href="https://stackoverflow.com/questions/6508313/javascript-console-log-in-an-ios-uiwebview">Javascript console.log() in an iOS UIWebView</a></p>
  
  <p>to allow us some insight into the page load. We put the javascript-side stuff right in the first script file we load on the page, and it doesn't print its message until after we do the rotate-or-tap workaround.</p>
  
  <p>So it appears that it is getting stuck somewhere between starting to load the page, and starting to evaluate the stuff on the page.</p>
  
  <p>We have tried a number of work-around, none of which helped:</p>
  
  <ul>
  <li>Setting location.href instead of using the  tag</li>
  <li>Setting location.href from javascript timeout</li>
  <li>In the didStartLoad callback, created a thread that called setNeedDisplay on the webView over and over</li>
  </ul>
  
  <p>Any idea what we might be doing wrong?</p>