Skip to content

Commit 026e7fd

Browse files
Emilios1995bubblesunyum
authored andcommitted
Include info about console.log
Summary: I spent so much time trying to optimize my JS without noticing this. Closes facebook#8285 Differential Revision: D3468707 fbshipit-source-id: bd5ff38ca2501891318b4be3c75bdaa10a4c64da
1 parent 1cd4ac2 commit 026e7fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/Performance.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ but their receipt is not necessary for the scroll to occur).
8181

8282
### Common sources of performance problems
8383

84+
#### Console.log statements
85+
86+
When running a bundled app, these statements can cause a big bottleneck in the JavaScript thread. This includes calls from debugging libraries such as [redux-logger](https://github.com/evgenyrodionov/redux-logger), so make sure to remove them before bundling.
87+
8488
#### Development mode (dev=true)
8589

8690
JavaScript thread performance suffers greatly when running in dev mode.

0 commit comments

Comments
 (0)