Is there an equivalent for setInterval() that works on opera mini?

75 Views Asked by At

I already Tried using a while loop, under the thought that it looped every milisecond or every half or whatever, but it loops whenever possible...

1

There are 1 best solutions below

1
Abana Clara On

setInterval and setTimeout don't work in Opera Mini? Didn't know that.

If setTimeout works, you can create a function that calls itself back over and over.

var myfunc = function(){
   //do something

   setTimeout(function(){ myfunc(); }, 100);
}();

Loops execute instantly in a human's perception of time, so a hundred loops and five loops essentially finish in the same speed -- provided your processor isn't a classic historical potato