I just added one more test case to be fair comparing the cached object
when selecting; so cached object used for context and also previous
to .find() ...
// method I prefer to use
var area1 = document.getElementById('mypage');
$('.stuff', area1)
$('.morestuff', area1)
// method faster in firefox
$('#mypage').find('.stuff')
$('#mypage').find('.morestuff')
// perhaps the fastest all around
$(area1).find('.stuff')
$(area1).find('.morestuff')
-Bill Heaton
@pixelhandler
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]