Dave Ward has a very extensive post (with benchmarks) on jQuery selector optimization. Really interesting stuff — the lesson is, the more specific your query, the faster it executes. The DOM is a data source, after all. He was able to achieve a 10x performance improvement by adding just 11 characters.
-
Matt Sherman is the CTO and co-founder of Alikewise.com, and a staffer at Stack Overflow. On Twitter he’s @clipperhouse.