Skip to content

Instantly share code, notes, and snippets.

@jayllellis
Created July 16, 2015 18:01
Show Gist options
  • Save jayllellis/562c84010531c9c05d7e to your computer and use it in GitHub Desktop.
Save jayllellis/562c84010531c9c05d7e to your computer and use it in GitHub Desktop.
Detects when the user is done reszing
var resizeTimer;
$(window).on('resize', function(e) {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function() {
// Run code here, resizing has "stopped"
}, 250);
});
@jayllellis
Copy link
Author

Got this from CSS Tricks

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