Does commented html elements and White spaces will causes page loading time.I know commented markup will not run by browser.compressing markup is the good idea while deploying in server
<!--Html Elements -->
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It won’t be run by the browser, but it will be in every case streamed by the server, and downloaded by the client. It shouldn’t make any difference, as long as you don’t have enourmous amounts of characters in there.
If you’re using dynamic pages generated server side, you might be interested in server-side comments, that don’t get streamed in the response, so the client never downloads/sees them.For instance, in JSP,
<%-- this is a server-side comment --%>.Also, remember that javascript code is not affected by these comments, actually,
<!-- -->is used to to avoid javascript code showing up on old old browsers that didn’t support javascript. See this link: Hiding JS code from old browsers.