event.live(events, selector, eventHandler);
You can JS events on elements that have been added to the page after the JS has been loaded.
event.off(el, event, fn);
You can turn off events that were previously applied using the on
method above.
el
: can be a node or nodeListevent
: can be an event-name or list of events (separated by spaces)fn
: function to be removed when event is triggeredevent.on(el, event, fn);
You can listen for standard and custom (non-jQuery) JS events
el
: can be a node or nodeListevent
: can be an event-name or list of events (separated by spaces)fn
: function to be called when event is triggeredevent.ready(fn);
You can detect when the document has finished loading everything except images:
Document is loading...
event.on(window, 'resizeend', fn);
You can know the moment (200ms) a user has finished resizing the browser
not re-sized.
event.trigger(el, event);
You can trigger standard and custom (non-jQuery) JS events.
el
: the node of which to trigger the eventevent
: Event-name to be triggered