|
|
|
|
|
by Xorlev
4166 days ago
|
|
I think he means that you can cache the majority of the page (including the HTML template) and then substitute in just the data (usually coming from JSON). I don't buy that it's more efficient personally. I'd rather resend a lightweight page on every time then force the browser to download it all, load the JS, then build a page and have the browser draw that. It seems to me that single-page apps are great when you aren't leaving the page and have a lot of navigation, but overkill for a blog. I am rather interested in react+react-router though. That seems like the best of both worlds -- render serverside, then render deltas clientside. |
|
It's called XML with XSLT.
Somehow it isn't very popular. But hey, we got this idea of "rendering pages on the backend or the frontend (or both)" from the same code lately!