To perform one function in 500 ms after resizing the window I use the code:

$(window).resize( function() { clearTimeout(ProductsSliderTimeout); ProductsSliderTimeout = setTimeout(ProductsSliderInit, 500); }); 

How to perform not one, but several functions at once?

    1 answer 1

    For example:

     $(window).resize( function() { clearTimeout(ProductsSliderTimeout); ProductsSliderTimeout = setTimeout(function(){ function1(); function2(); }, 500); });