Last active
February 8, 2020 07:34
-
-
Save jesusaguilera/de440b542503d9b1d471c02932d89509 to your computer and use it in GitHub Desktop.
Detect when window resize stop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let resizeId; | |
| $(window).resize(() => { | |
| clearTimeout(resizeId); | |
| resizeId = setTimeout(doneResizing, 500); | |
| }); | |
| function doneResizing(){ | |
| console.log('resized!') | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment