Skip to content

Instantly share code, notes, and snippets.

Avatar

Erick Sahara ericksahara

View GitHub Profile
View gist:f59bdf5f73e4ab25988a
// 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"