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
Elixir Phoenix makes server-side rendering really fast with neat tricks: nathanmlong.com/2016/11/elix… changelog.com/ uses that plus Turbolinks to make the site snappy. Hat tip to @jerodsanto
1
3
21
@jerodsanto Has there been a Changelog episode about this approach vs client-side rendering? If not, I request one! :) Would love to hear your experience, what you think the pros and cons are, and a discussion / debate with someone like Yehuda Katz.
1
2
Hmm, not specifically. We had @dhh on recently to discuss StimulusJS and these topics came up, but him and I agree on most points there. It wasn’t all that balanced of a treatment.
1
2
I’d be happy to talk about this at great length, but I don’t have a framework to sell :)

May 31, 2018 · 2:16 PM UTC

1
7
The point I'd want to make is that some things *must* be done server side and *can* be done client-side. Validation is the prime example - the client might be your frontend code or any CLI, so you can't trust them. Rendering for first page load is debatable.
2
4