score:18

Accepted answer

d3 uses requestanimationframe to enable smooth and efficient drawing. here is more info on the topic.

the basic problem many people have is, when a window/tab is in the background, the page rendering "goes to sleep mode" and no "animation frames" are provided, i.e., the browser will stop drawing.

you can work around that "problem" by using the browsers visibility api to control your drawing (e.g., do a complete update of your charts when the page becomes visible again). see the related mdn page for examples.


Related Query

More Query from same tag