by Wintamute · 11y ago · 0 comments
Universal JS apps can help here. Render the JS app page server side using a thin Node server, hydrate the fully formed DOM on the browser and run it client side from there. Truly, the best of both worlds.
Twitter did have to backtrack from the #newtwitter pure client-side model. Serving a 140-character string shouldn't require a 1+ MB payload. So maybe they server-generate their pages this way too now.
http://rackt.github.io/redux/docs/recipes/ServerRendering.ht...
https://github.com/GordyD/3ree/blob/master/server/universalA...