Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DOM tips #22

Open
Kikobeats opened this issue Aug 31, 2016 · 3 comments
Open

Add DOM tips #22

Kikobeats opened this issue Aug 31, 2016 · 3 comments

Comments

@Kikobeats
Copy link
Owner

  • Caching DOM selector
  • moar

Related: http://www.w3schools.com/js/js_performance.asp

I'm sure that @rstacruz know more tips in this are than me 馃槃 .

@rstacruz
Copy link
Contributor

don't use variables

AFAIK, this isn't always true. Sometimes it might be faster to have a variable in v8. I don't have a link to point to info on this, might have to benchmark it :)

@rstacruz
Copy link
Contributor

By the way, have a look at github.com/codemix/fast.js :)

@Kikobeats
Copy link
Owner Author

yes, I don't like the don't use variables tip. I think that is related more with the fact of don't use a variable that don't alive the necessary time to be cached by v8.

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

No branches or pull requests

2 participants