I often write comments when I create a PHP script or when I write in HTML and CSS. My question is: those comments affect very much the loading times of my web page?

Well php comments from my judgment would effect the page by a few microseconds and there are 10000 microseconds in a second. And as for html/css/javascript comments, they only effect the download time by a few bites. To calculate how much they effect the download time it is the number of letters/numbers/characters = number of bites (1024 bites in 1KB). So really comments overall might effect the page by one tenth of a second if you use a lot of html/css/javascript comments.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.