Optimize Performance with Debounce and Throttle

To enhance performance, we use debouncing and throttling techniques for intensive interactions like scroll and resize events.