|
|
|
|
|
by dlau1
4497 days ago
|
|
Have you tried react.js [1] ? If you use node to serve your content, you can pre-render the initial state of your app. When everything loads up, react will take a checksum of the rendered portions to ensure that it doesn't re-render the same DOM. This should come close to solving your SEO/test issues with minimal work. In my opinion, a setup like this is close to what the next big wave of frameworks will use. You can break your layout up into parts and have a site that is partially dynamic and partially static. You just pass the html that react renders to your templating engine. Getting everything setup correctly can be a little hassle, but gulp is fast enough when doing a watch on the compilation step. Of course, because everything is javascript you share the exact same component code between client and server. This is a good example that helped me a bit[2] [1] http://facebook.github.io/react/
[2] https://github.com/mhart/react-server-example |
|