title: setInterval timer works too fast in mobile
body: <p>I've just starting coding this year for class, anyways this is the simple timer I have been using to change pictures on my website and it works fine.
  I made a jQuery Mobile site for class by adapting my HTML etc so everything is the same including this bit of code, however when I view my site on my phone the timer is going way too fast like about every half a second instead of every 3 seconds.</p>
  
  <p>This is the code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function workshop(){
      var pic = new Array('1.jpg', '2.jpg', '3.jpg');
      var image = 0;
      var changePic = setInterval(function() {Timer()}, 3000);
  function Timer(){
      image=Math.floor(Math.random()*pic.length);
      document.getElementById('id').src=pic[image];
  }
  }
  &lt;/script&gt;    
  </code></pre>
  
  <p>I looked at using setTimeout instead of setInterval but it didn't want to work in my browser so I ended up here :3 Any ideas? Ty in advance</p>