JavaScript Debugging Statements in js?
-
When I use zoompf.com to scan my site that uses Autoptimize I get the following notice for the js produced by autoptimze:
JavaScript Debugging Statements (console.log())
Issue Summary
This resource contains JavaScript code with debugging functions. Specifically this code contains call to the console.log() function. This function is useful during development to aid in debugging. However it should not appear in production code for several reasons: it increases the size of this response; it causes a runtime performance penalty; and it can cause runtime error messages in browser which do not have a console object. Removing code that uses console.log() will slightly improve performance for this response.
The topic ‘JavaScript Debugging Statements in js?’ is closed to new replies.