Skip to content

24 ways to impress your friends

Vote up?

Fantastic, specially liked the .find() optimization.
For someone coming from ActionScript jQuery shares lots of optimizations.
But DOM manipulation is the heavyweight here.

I was expecting a mention to the second parameter of jQuery(), the context parameter. I was under the impression it narrowed the scope of the DOM search. Is it really faster? or is .find() better.

I also have the doubt as to how does jQuery reads selectors. Is it like CSS (from right to left) or always goes for the ID first?