Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Done Resizing Event
// https://css-tricks.com/snippets/jquery/done-resizing-event/
var resizeTimer;
$(window).on('resize', function(e) {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function() {
// Run code here, resizing has "stopped"
}, 250);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment