learned about event throttling with timer and implemented it for window size change