[jQuery] Performance Booster - $( expr, context, fn ) ?
Hallo,
When the "search" $() returns a lot of objects (10000), then you have
to loop twice through this objects. First for selecting the elements,
and then second when doing somthing with the elements.
e.g. $('td').addClass('red'); // get all tabledata and do something
with them
It would be nice if there were something when immediate when an
element was found, a "callback" function can be executed. This can
bring a lot of performance when handling a large amount of objects.
$( expr, context ) // current
$( expr, context, fn ) // possible add on to call a function
immediately after it was found
This may give developers the possiblity of using "Command Injection"
and "Command Chaining" together.
Thx & regards, Willi
Thank's to all of you for building jQuery. It's realy one of the cool
libraries where don't need a tree month course to start working with.
Just use it to do your job. I like it also because you don't need to
change your current web pages and jQuery fits to nearly every
environment.