Optimize websites by removing code comments?
问题 I wonder if there is any (noticeable) performance improvement when removing code comments from .php, .js, .css, .html, and similar files? 回答1: Mostly not, modern CPU's are very fast... The most notable improvement is the speed in the download speeds. Strip out any unnecessary comments sent down the wire to the browser, minify CSS, JavaScript files, use CDN's etc. 回答2: It depends how many comments there are. In general though, most developers have a live version of all their code that is