Tiny progress

Added  debounce method, used it to add resize event listeners