Friday 2011-09-09

This blog currently has three distinct elements: the initial HTML (head, body), the templates used (in script tags of type text), and finally the javascript used to render the page. I could have added the CSS style to the head (e.g. CelebrityTimesUp) for a total of four different functionalities. Basically, I'm just turning HTML into MIME.

Ideally, we want to ship one file over one TCP connection to the client browser. We should bundle all the resources that the server knows about into that one file. Since browsers don't support some kind of auto-unpack-this-tar-gz-and-render-it, we have to build an all-encompassing HTML file on the server.