Revert "Revert "Fix regression where bars wiggle on window resize by mak...

...ing special-cased setTimeout that fires immediately if t=0""

This reverts commit 8e86c5c1f67a08199da75b0040ba7384a8da212b.
Why -1?