title: iPad JavaScript - Occasional long delays
body: <p>Some of my website's JavaScript is heavily delayed on an iPad. The delayed JavaScript is simple. It is just displaying or hiding a particular area.</p>
  
  <p>JavaScript:</p>
  
  <pre><code>function showbox(box) {
      $(box).show('blind');
  }
  
  function hidebox(box) {
      $(box).hide('blind');
  }
  
  function togglearea(area) {
      if ($(area).is(":visible")) {
          hidebox(area);
      }
      else{
          showbox(area);
      }   
  }
  </code></pre>
  
  <p>This called from an 'OnClick' 
  EG. onclick="togglearea('#areatotoggle')"</p>
  
  <p>I haven't had a problem using a desktop, but occasionally there is an issue on an iPad. The delay is over 10 seconds.</p>
  
  <p>Should I be doing this differently? Why should this create such a delay?</p>
  
  <p>Thanks in advance</p>