jQuery plugin to fire a single event after some idle period of inactivity
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
jquery.onidle-1.0.0.js
jquery.onidle-1.0.0.min.js
samples.html

README.md

#jquery.onidle

What is it?

jquery.onidle is a jQuery plugin that allows you to execute a single function when a monitored series of events stop firing. For example, when a user stops typing in or leaves a textbox, fire off validation.

How to use it?

  1. Include jquery.onidle-1.0.0.min.js in your project. Bundling encouraged!
  2. Call the following code:
$(':text').onidle('focusout blur keyup change', 250, function(event) {
    // Only called once when events haven't fired for 250 milliseconds
	// The 'event' argument is the event object passed to the event that was fired.
});

Samples?

Yes, we have samples!