10 Checks Before Launching Your Javascript
- check for console statements (console.log, console.startTime....)
- check for debugger statements
- check your outcommented try catch statements
- check for large outcommented old code fragments. If you are at the stage of going live this might be the time to get rid of it.
- look for fixed url's which might work in the development environment but not on the production server
- if you are using google maps make sure you have an api key for the live server
- check for credentials in your comments or code (like usernames and passwords)
- when using javascript libraries or frameworks make sure you include the minified production version and not the fully commented debug version.
- off course the same goes for your own js files
- and this last check works for me personaly: check on the "TO DO" string in the js code. When I still need to do some work on a part of the code I always flag it with a //TO DO comment.
Labels: checks, javascript, list


