Skip to content

Instantly share code, notes, and snippets.

@JBlackCat
Created September 5, 2015 22:28
Show Gist options
  • Save JBlackCat/bcd732181ba333742674 to your computer and use it in GitHub Desktop.
Save JBlackCat/bcd732181ba333742674 to your computer and use it in GitHub Desktop.
onResizeDone -
var resizeTimer;
$(window).on('resize', function(e) {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function() {
// Run code here, resizing has "stopped"
}, 250);
});
@JBlackCat
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment