in reply to Tailing/Streaming a Log File into Any Web Browser from Daemon
Web browsers will typically not render tables until the entire code has been read. This is generally considered to be a feature. Your best result would probably be to send plain text, but the javascript should also work fairly easily.
Another solution might be to only display the last 15 or so lines and have it automatically refresh, this way you can display colorized logs without waiting for the entire file to display.