throttle snippet added
debounce snippet added