Redraw: delay drawing on layers to let html finish drawing