Dev Tip: Faster Selects w/Tag Name
jQuery provides an extremely versatile DOM query mechanism. If you’re wondering what’s happening under the covers, and if there are less- and more-performant ways to formulate your query . . . the answer is YES. In many cases you can help jQuery by specifying a tag name, i.e.:
$(“div.class”).show()
is faster than:
$(“.class”).show()
. . . with the difference […]
Comment · Posted: July 27th, 2006