Skip to content

Instantly share code, notes, and snippets.

@yuchen
Forked from branneman/event.js
Created August 20, 2014 01:08
Show Gist options
  • Select an option

  • Save yuchen/7a78f3d95887fee24786 to your computer and use it in GitHub Desktop.

Select an option

Save yuchen/7a78f3d95887fee24786 to your computer and use it in GitHub Desktop.
$(function() {
var resizeEnd;
$(window).on('resize', function() {
clearTimeout(resizeEnd);
resizeEnd = setTimeout(function() {
$(window).trigger('resizeEnd');
}, 100);
});
});
$(window).on('resizeEnd', function() {
console.log('IMMA RESIZED 100 MILLI-FOCKING-SECONDS AGO');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment