Created
July 21, 2016 22:52
-
-
Save BryanBarrera/7f4e56b4657bc15de9c1b5b0a1efd51c to your computer and use it in GitHub Desktop.
Resize function w/ delay
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
| var a; | |
| $(window).resize(function(){ | |
| clearTimeout(a); | |
| a = setTimeout(function(){ | |
| // call your function | |
| },750); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment