lazyQueryJs is tiny plugin to jQuery that allows you to write jQuery queries with lazy execution.
It can be very handy:
Resuse
queries- Write
less
code
Everything between $.lazy() and .execute() is lazy executed.
- Create query
var $query = $.lazy('#someId').width(400). ... .height(400);
- Execute query
$query.execute();
or execute with delay
$query.execute(4000);
In case of execution with delay we receive jQuery deffered object so we can subscribe.
$query.execute(4000).then(function(){
});;