d3.timerFlush()

d3.timerFlush()

Immediately invoke any eligible timer callbacks. Note that zero-delay timers are normally first executed after one frame (~17ms). This can cause a brief flicker because the browser renders the page twice: once at the end of the first event loop, then again immediately on the first timer callback. By flushing the timer queue at the end of the first event loop, you can run any zero-delay timers immediately and avoid the flicker.

doc_D3_Js
2016-11-24 10:27:27
Comments
Leave a Comment

Please login to continue.