Re:Stop sending template engines to the browser. How to make...
by drivebyacct2 on Thursday September 13, 2012 @11:07PM
(#4519843)
Is this said in good faith? There are lots of reasons for client side templates, but I rarely (never) see anyone citing it because rendering on the server is slower than rendering on the client.
[ Parent
| on HN ]
Re:Stop sending template engines to the browser. How to make...
by sirclueless on Friday September 14, 2012 @01:50AM
(#4520280)
Client-side rendering probably isn't faster than server-side rendering in terms of latency, but it is cheaper. You save on server processing and network bandwidth.
Rendering speed isn't the reason server-side templates feel "slow" though: if you do server-side rendering then every change of state on the client needs to round-trip to the server in order to fetch a new HTML representation. Client-side rendering lets you "cheat": just render the new state and synchronize with the server after the fact.
Re:Stop sending template engines to the browser. How to make...
by drivebyacct2 on Friday September 14, 2012 @12:05PM
(#4522348)
Right.