fix repaints in chrome 38

Dom ready is fired only once, when the window is first shown