3 ms·
To me, rendering in javascript makes the most sense when you expect incremental updates. For instance, a forum or comments page where finding and fetching a cou
by krapp 12y ago
To me, rendering in javascript makes the most sense when you expect incremental updates. For instance, a forum or comments page where finding and fetching a couple of new bits of text would obviously take less effort than rendering and serving the entire document for that same bit of text. I would agree with you that if you have a page that never changes, and there's no benefit to fetching assets asynchronously, and you're not doing anything dynamic, then you might be better off with static pages and caching.
Although to be fair, the number of people on HN who care about the security implications of javascript are grossly out of proportion to the general case. Near enough to 100% of people have javascript turned on by default that everyone else might as well be a rounding error.