Debouncing resize and orientationchange events.