How do I make the javascript resize event handler happen only after the user stops resizing the window? I don't want it to get called over and over again as the user is resizing the window.
$(window).resize(function () {
if( document.getElementById('staticImage').style.display == 'table-cell') {
resizeWithImageMap();
} else {
resizeWithoutImageMap();
}
});
Thanks.