Skip to content

jQuery re-wrapping is not faster #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
padolsey opened this issue Oct 25, 2013 · 2 comments
Closed

jQuery re-wrapping is not faster #90

padolsey opened this issue Oct 25, 2013 · 2 comments

Comments

@padolsey
Copy link

Spotted a tiny thing. Not really important. Nice work on the guide btw :)

// good (slower)
$sidebar.find('ul');

// good (faster)
$($sidebar[0]).find('ul');

Not sure it's worth preferring such micro-optimizations, but FWIW the former is marginally faster.

@hshoff
Copy link
Member

hshoff commented Oct 25, 2013

Good catch and thanks for checking out the guide!

🍻

@hshoff hshoff closed this as completed in 6394ca8 Oct 25, 2013
@padolsey
Copy link
Author

Cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants