14 ms·
Erm - how would it slow down people's code? We're already doing a check to see if a tag name is being used and optimize based upon that, we just added one addit
by jeresig 17y ago
Erm - how would it slow down people's code? We're already doing a check to see if a tag name is being used and optimize based upon that, we just added one additional check to optimize for body.
There is absolutely no way in which the check:
if ( selector === "body" && !context ) ...
Will have performance implications in your application.
- gregwebs 17y agoPlease excuse my brevity- that is what I was trying to say with "(not noticeably)". Technically, or course it will slow down code not using the conditional.