2 ms·
I wrote a bad metronome using setInterval at some point (http://server.saagarjha.com/metronome http://server.saagarjha.com/metronome) and had somewhat different
by saagarjha 7y ago
I wrote a bad metronome using setInterval at some point (http://server.saagarjha.com/metronome http://server.saagarjha.com/metronome) and had somewhat different issues: if you moved the page to the background, my browser would throttle it and coalesce the events so it wouldn’t actually “tick” at the right rate anymore. And for whatever reason, in WebKit setting 60 bpm just doesn’t make any noise at all…