Throttle or Delay JavaScript Functions When Window is Resized [code snippet]

  • Updated on
  • read
  • Add to Flipboard Magazine.

Underscore.js has a popular method for throttling and debouncing functions to prevent them from firing multiple times when a window is resized. I found this delay function that works for times when you don’t need to load the entire underscore library to achieve a similar effect.

hubspot vs mailchimp vs moosend review - free plans comparison

HubSpot vs MailChimp vs Moosend: Get The Free Plan That Suits You

Read Review

Advertise Here

Written by: Jacob Lett - Jacob started BootstrapCreative to help others learn web design and development. He has built websites for 10+ years for companies and as a freelancer. He enjoys learning and encouraging others to improve their skills.
Category: Code Snippets
Tags: ,

Want to Get Email Updates?

Receive a monthly digest of new tutorials and resources.

Advertise Here