Skip to content

Commit

Permalink
[strings] add jsPerf and discussion about long strings with concatena…
Browse files Browse the repository at this point in the history
…tion. Fixes #40
  • Loading branch information
hshoff committed Jan 11, 2013
1 parent e645ca2 commit 4815ab0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
```

- Strings longer than 80 characters should be written across multiple lines using string concatenation.
- Note: If overused, long strings with concatenation could impact performance. [jsPerf](http://jsperf.com/ya-string-concat) & [Discussion](https://github.com/airbnb/javascript/issues/40)

```javascript
// bad
Expand Down Expand Up @@ -1289,6 +1290,7 @@
- [Bang Function](http://jsperf.com/bang-function)
- [jQuery Find vs Context, Selector](http://jsperf.com/jquery-find-vs-context-sel/13)
- [innerHTML vs textContent for script text](http://jsperf.com/innerhtml-vs-textcontent-for-script-text)
- [Long String Concatenation](http://jsperf.com/ya-string-concat)
- Loading...

**[[⬆]](#TOC)**
Expand Down

0 comments on commit 4815ab0

Please sign in to comment.