Use requestAnimationFrame to redraw visualizations on resize. Only redraw visualization in active view.