Something that has always bugged me is how unpredictable the setTimeout() method in Javascript is.
setTimeout()
In my experience, the timer is horribly inaccurate in
If you need to get an accurate callback on a given interval, this gist may help you:
https://gist.github.com/1185904