Using debounce instead of throttle
Adding options to configure debouncing window resize events