title: Should I be removing console.log from production code?
body: <p>I currently have this JS statement everywhere in my code:</p>
  
  <pre><code>window.console &amp;&amp; console.log("Foo");
  </code></pre>
  
  <p>I am wondering if this is costly at all, or has any negative side-effects in production.</p>
  
  <p>Am I free to leave client-side logging in, or should it go?</p>
  
  <p>EDIT: In the end, I suppose the best argument I (and anyone else?) can come up with is that there is a possibly non-negligible amount of extra data transferred between the server and the client by leaving logging messages left in. If production code is to be fully optimized, logging will have to be removed to reduce the size of javascript being sent to the client.</p>