The important question you have to ask yourself here is, what is your goal. Do you
- want to have more traffic over the wire and less client cpu usage
- want to have more client cpu usage and less traffic over the wire
and in that context another question is, how many people are calling your site. If you have hundreds of thousands page visits a day, you should consider to reduce the wire traffic for instance.
In most cases, you don't only want to generate HTML markup, but you also want to send some
ordinary data to the client which you can handle in your ECMA-/Javascript
.
Therefore, JSON
should be your first choice (if you don't have to deal with giant blocks of data). JSON
is leightweight and can be parsed extremly
fast with javascript
.
So to repeat myself, whether to generate a complete rendered markup on your server and deliver that to a client or let the client do the job depends on what you are planning to do.
A static page is what you guess correctly, static. But it means no cpu usage for a client/browser. So if you don't need/want to have a "dynamic" page behavior you're just fine with a static page.