When should I use an HTML comment on a server comment?

advertisements

From what I understand HTML comments cause longer load time so why would one use them instead of server comments which are never sent to the client?


While server comments are usually more efficient in terms of page load times, HTML comments are sometimes necessary when you want to print a comment inside a loop and view it after having it rendered.