Let\'s say I have $(\'mySelector:first\'); and $(\'mySelector\').first();. Which way is the most efficient? I looked in the source, but still could
$(\'mySelector:first\');
$(\'mySelector\').first();
In my tests, $('mySelector:first'); is faster than $('mySelector').first();
$('mySelector:first');
$('mySelector').first();
You may also be interested in this;