This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 ); |