3 ms·
There are 2 things wrong with your analysis, IMO. First of all gzip will reduce this considerably. Both will end up much smaller, but also the % difference wi
by justin_vanw 11y ago
There are 2 things wrong with your analysis, IMO.
First of all gzip will reduce this considerably. Both will end up much smaller, but also the % difference will be reduced, since the html version is likely to contain much less entropy per bit.
Secondly, in my version of how to do it, you can still use AJAX. It's fine to load blog posts via AJAX, and in that case you aren't reloading the boilerplate of the page? I am saying to return rendered html in the response rather than returning json and rendering it into html in the browser. The specific data returned can be the same either way, and the overhead of html over json in the case of a set of blog posts should be tiny, and depending on how much markup the posts themselves contain, the html version is quite possibly going to be smaller.