Hacker News new | ask | show | jobs
by shebson 4526 days ago
Exactly this. Serving fully formed html and picking it up by a client-side framework is great for crawlers and also great for performance. In addition to React, you should check out Rendr (https://github.com/airbnb/rendr) - it's a really cool library for doing this via server-side rendering of Backbone views.
2 comments

Downloaded rendr, fired up the first example simple_00, opening links - Users and Repos, was painfully slow. With server MVC frameworks at least there is an indication by the browser that page you clicked on is currently loading. With client-side MVC frameworks pages usually load instantly and data arrives shortly after. In rendr, maybe it's just a terrible example, you wait 2+ seconds for a page to load and there is zero indication that page is loading.
Tried this, you have to turn your entire Node deal into Backbone. Yuck.