jQuery doTimeout plugin v0.4


I just updated my doTimeout plugin, adding a few useful features. First, the id argument is completely optional now, and if the callback returns true, a polling loop is created. More functionality, easier to use, what more could you want?

In case you aren’t familiar with doTimeout, here’s a description:

It’s fairly common to need to delay execution of some code, and then also repeatedly continue to delay that code until some condition is met (polling). It’s also not uncommon to need to delay execution of some code until a triggering event or events has stopped for a certain amount of time (debouncing). This jQuery plugin greatly simplifies doing either of those things, as well as many other delay- or interval-related tasks. Just think of setTimeout, but with additional management options, jQuery chainable, and with a simpler and more flexible API.

As always, check out the documentation and examples over at the doTimeout plugin page now, and let me know if you have any questions, comments, or suggestions!

Post A Comment

  • Any of these HTML tags may be used for style: a, b, i, br, p, strong, em, pre, code.
  • Multi-line JavaScript code should be wrapped in <pre class="brush:js"></pre>
    (supported syntax highlighting brushes: js, css, php, plain, bash, ruby, html, xml)
  • Use &lt; instead of < and &gt; instead of > in the examples themselves.