Here’s a mind-blowing idea: Instead of adding server-side rendering by getting your client-side framework to work on the server, too, first start with server-side rendering and make it really, really fast; then as a next step, maybe don’t do that client thing.
48
395
36
1,098
Can Rails severs even render JS in an easy way? I assume your idea relies on the fact that the server is also running JS.
1
What does Rails have to do with it?
1
Well if the API Server is a rails server how can it use the same js code to render that the client would use?
1
Replying to @pkursawe
The point is it shouldn’t have to render the same stuff because what’s rendered on the server is only rendered on the server

Jun 1, 2018 · 9:31 AM UTC

1
Replying to @stilkov
So really like in the old days with occasional unobtrusive JS sprinkled into the rendered output. I always favoured this idea.