I am using jQuery.
I read a lot about selector performance and optimizing our AJAX application. I want to improve the selector. I know all the jquery performance hints. I did not find the exact answer to the question that I have. I use almost all of the current jquery performance hints, and yet my application is still slightly behind.
So, for optimization, I start with selectors.
My question is: does it get out of context to target an identifier faster than just aiming an identifier? I can not say anything significant.
Example:
there is
$('#childId', $higherElm);
faster than just
$('#childId');
????
Thanks in advance.
source share