It seems fairly trivial to add some sort of 'query optimizer' so a call
like $('#listing .list_item') will be rewritten to $('.list_item', '#listing').
It seems like you could basically split on the space (won't that always
work?)... but at the very least calls that contain an ID should be able to
be rewritten. This way existing sites will get a nice speed boost on a lot
of common selectors without requiring a rewrite. Who knows, maybe jQuery
2.0 will also have an 'explain' function that shows the optimizations used
and estimates the cost of the query. :-)
-- THD
On Thu, Aug 27, 2009 at 10:20 PM, Van <[email protected]> wrote:
> $('#listing .list_item');
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---