Last active
December 7, 2016 09:14
-
-
Save mpizenberg/ac72dffbb245f4df0487e6379a324f52 to your computer and use it in GitHub Desktop.
Medium Debounce
This file contains 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
// Avoid costly calculations while the window size is in flux. | |
jQuery(window).on(‘resize’, _.debounce(calculateLayout, 150)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment