HTML comments are a technique for hiding JavaScript code from browsers that do not interpret script tags. Since all popular browsers have supported script tags for many years, this precaution is not needed any more.

Remove all HTML comments.

The following code block uses HTML comments to hide the script block from ancient browsers.

Since such browsers are no longer widely used, the comments should be removed:

  • JavaScript Toolbox: JavaScript Best Practices.