Which jQuery selector is more efficient with .find() -
does tag name hurt or help?
1) $content.find('[name=foo]')
or
2) $content.find('input[name=foo]')
i wrote quick jsperf test, it's same.
both pretty slow (jquery quite slow anyway).
i tested $.find() method 2 weeks ago. it's habit use it, it's pretty efficient.
Comments
Post a Comment