lazyHandler is a jQuery plugin that gives ability to add event handlers to any DOM elements more efficiently and gives more "onload" performance on web pages that has lots of event bindings.
lazyHandler is familiar with jQuery's standart event binding convention. For example, in standart jQuery you will add an event handler like:
$('.someClass').click(function(event) {
// Some good stuff
})
If you want to use lazyHandler for this binding, add 3 chars only:
$.lh('.someClass').click(function(event) {
// Some good stuff
})
Also you can use "bind" method:
$.lh('.someClass').bind('click', function(event) {
// Some good stuff
})
lazyHandler is already handles events like jQuery's live method.
No. You can use only click, dblclick, mouseup, mousedown, keydown, keyup and keypress events with lazyHandler. Only click event has a specific function. You can use others with bind method.
Build version(Obfuscated with YUI Compressor) is 363 bytes!