Skip to content

Instantly share code, notes, and snippets.

View kenhowardpdx's full-sized avatar

Ken Howard kenhowardpdx

View GitHub Profile
@amaxwell01
amaxwell01 / resize_delay.js
Created December 3, 2012 23:52
window resize delay
// Run code on resize, but give it a slight delay so that we aren't always calculating it
$(window).resize( function() {
if( timer ) {
clearTimeout(timer);
}
var timer = setTimeout( function() {
// On Resize Code Goes Here
}, 100 );