Only update css after the rendering has been done.