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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace nav string concatenation with join(). #29

Merged
merged 4 commits into from Jan 25, 2016
Merged

Replace nav string concatenation with join(). #29

merged 4 commits into from Jan 25, 2016

Conversation

ghost
Copy link

@ghost ghost commented Jan 24, 2016

According to a Google JS optimization guide, join() is better than doing
+= to a running string when it is passing through a loop or
conditional statement.

Reference:
https://developers.google.com/speed/articles/optimizing-javascript

Barry Anders added 4 commits January 23, 2016 23:41
According to a Google JS optimization guide, join() is better than doing
+= to a running string when it is passing through a loop or
conditional statement.

Reference:
https://developers.google.com/speed/articles/optimizing-javascript
I noticed that the similar switches are already used in other parts of
the code, plus, technically switch is faster (albeit not noticeable).
General idea here: shorter and more professional vocabulary. An example
would be to avoid using the word: stuff.
chrisdiana added a commit that referenced this pull request Jan 25, 2016
Replace nav string concatenation with join().
@chrisdiana chrisdiana merged commit f0cc724 into chrisdiana:master Jan 25, 2016
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

Successfully merging this pull request may close these issues.

None yet

1 participant