Server or client side dispatch
How to solve the problem when building a web application between server side rendering and client side rendering. Is there a general recommendation or best practice for all websites? Which should I recommend, server side rendering, client side rendering, or a hybrid of the two?
Some people say whether the choice of client / server option depends on the use. I'm still not sure which cases are more appropriate for client-side or server-side rendering.
How do we decide whether to use a client-rendered page or a server-rendered page. Is there an intermediate level at this?
source to share
If you are using some modern SPA (single page apps) frontends like angular or ember it is not that popular for server side rendering yet.
However, React.js has support for this: http://maketea.co.uk/2014/06/30/building-robust-web-apps-with-react-part-4.html
The Ember.js guys are thinking about the issue too, here's an interesting discussion: https://github.com/emberjs/ember.js/issues/9938
Hope this helps a little.
source to share
no answer for all scenarios:
-
If you have a lot of heavy business logic and need a start page for fast rendering, server rendering is faster and gives more performance ( see why twitter decided to move away from client rendering ) and How Basecamp Next got so damn fast without using a large client interface
-
if you're building an app with a lot of standalone functionality, or fantastic animations and page transitions, client-side viewing can be considered
-
SEO is a major issue in client side rendering and crawlers will have trouble indexing the site.
source to share