I know that you are supposed to cache the results of a selector if you use it more than once. An example would be:
var $selected = $(\'.some-selected-elemen
jsperf.com is a great resource - and one I've taken to frequenting of late - for evaluating JavaScript performance. For example, the following test evaluates the performance of cached jQuery elements to that of non-cached:
http://jsperf.com/jquery-cache-vs-no-cache
The results echo the answers in this thread.