Just to add to that, you can also just print " "; .
Sure, you can do that. The benefit of HTML comments as heartbeats is that they can also serve as diagnostic information. E.g., you can print timestamps in them, so get some feel for where your long-running program is spending time, and whether the heartbeats are too far apart (which risks a browser timeout).
| [reply] |
True, I mentioned the alternative mainly so the poster would realize that it didn't have to be a comment.
-Lee
"To be civilized is to deny one's nature."
| [reply] |