setTimeout alternative
<p>I want to run a function after delay a second , setTimeout works on browser, but on ipad, it sometimes just completely skip this function, perhaps it can't run several setTimeout at the same time becuase I have many other timeout functions, what is the proper alternative for setTimeout?</p>

<pre><code>that.movepictimer = setTimeout(function(){
                    for(i=1;i&lt;that.pic.length;i++){
                        if(that.$pic[i]!=null &amp;&amp; that.$pic[i]!=undefined){
                            css_translate(f,that.$pic[i],that.picleft,0,i);
                        }
                    }
                },1000)
</code></pre>
