Window resize / orientationchange event controller using request animation frame.