title: Android WebView: Very laggy button response
body: <p>I've got a little web app that I made to play with Android's WebView functionality.</p>
  
  <p>I've got some divs that I use as buttons (with <code>onclick</code> attributes). Upon trying out the app (in the device's browser), <strong>I immediately noticed a huge amount of lag after tapping a button.</strong> The lag comes between when I tap the button and when the browser shows the orange highlight around it.</p>
  
  <p>I did some testing and got some info:</p>
  
  <ul>
  <li>JavaScript isn't the problem. I unlinked all my scripts and blanked out all the <code>onclick</code> attributes. The performance didn't change.</li>
  <li>CSS3 stuff isn't the problem. I got rid of all the fancy gradients, and the performance didn't change.</li>
  <li>The number of elements isn't the problem. I tried it with just a few elements on the page, and performance didn't change.</li>
  <li>Doctype and meta stuff isn't the problem. I made sure I was using what Android <a href="http://developer.android.com/guide/webapps/best-practices.html" rel="noreferrer">recommends</a>.</li>
  </ul>
  
  <p>I'm really at a loss as to why there's so much lag. I've eliminated everything that could be causing it, but nothing's helped.</p>
  
  <p>Am I missing something?</p>
  
  <p><strong>How can I remove lag after a button is tapped?</strong></p>