Another general thing to look out for is class selectors.
Selecting by class vs tagname and class varies between browsers as far as which one is quicker.
$("div.foobar");
vs
$(".foobar");
I usually lean toward the $("div.foobar")
Also, when using selectors such as :hidden, it can sometimes be faster to split that into a .filter:
$('input').filter(':hidden');
This is because some browsers (most modern browsers) support the querySelectorAll() method, but not all of them support the :hidden pseudo selector. By splitting it up, you get the quick selection by queryselectorAll() for "input", then filter that by the less efficient :hidden selector.
-- Kevin