preparing doc for debounce/throttle