Reputation: 32137
I want to initiate a function when user finishes resizing of his browser window. Please suggest how to do it in either pure JS or jQuery.
Note: I want to raise the event only once and after user has done browser resizing.
Upvotes: 0
Views: 128
Reputation: 23823
You can introduce a small delay before running the resize handler using setTimeout
and keep renewing this timeout until the events stop. This article explains how to do it - http://ajaxian.com/archives/delaying-javascript-execution
Upvotes: 1