1) What do you mean by server-side rendering of JavaScript? It sounds like you mean executing JavaScript on the server that otherwise is destined to execute on the client-side. I execute JavaScript on the server/terminal all the time and don't call it server-side rendering . 2) What is your motivation? What problem do you think you are solving with server-side rendering ?
He's talking about web apps.
Ask HN: What happened to server-side rendering?
21–30 of 74 posts
Re: Ask HN: What happened to server-side rendering?
#22Obligatory plug for Phoenix LiveView: https://github.com/phoenixframework/phoenix_live_view edit: This actually has examples https://dockyard.com/blog/2018/12/12/phoenix-liveview-intera...
Is there a demo server somewhere? wonder how well it will work if you are at 200ms from the server.
Re: Ask HN: What happened to server-side rendering?
#23My two cents: 1) Lack of reliable real time ability to detect device and compute size. 2) Increased computation complexity of what to render - why put that load on the server when devices are now commensurately as fast - or even faster given the trend to distributed services that maximize network throughput over power. I'm not even sure why it was so popular in the first place; client server separation is a good thin…
Re: Ask HN: What happened to server-side rendering?
#24I would say is more relevant now, the time to build and complexities of SPAs has make many companies switch more to multipage SSR react with additional react JS for the browser, for SSR, SSR react is superior (because of components) to stuff like pugs IMO.
Re: Ask HN: What happened to server-side rendering?
#25Demo: https://youtu.be/Z2DU0qLfPIY?t=2628
Links: https://leveljournal.com/why-phoenix-liveview-is-a-big-deal https://elixirforum.com/t/phoenix-liveview-info/16569
PS please stop calling it isomorphic — this is disgrace for the mathematics.
Re: Ask HN: What happened to server-side rendering?
#26> Are any products still using it? Of course they are. Lots. The New York Times. The Intercept. AirBnB. Just off the top of my head.
Re: Ask HN: What happened to server-side rendering?
#27Most people have realized it's actually complicated to do it right and just gave up on server-rendering their React apps (e.g. Reddit).
Re: Ask HN: What happened to server-side rendering?
#28Re: Ask HN: What happened to server-side rendering?
#29I was one who jumped in, then tried to automate my way out of client-side slow renders with https://www.roast.io/ (uses a headless browser to server-side render a JS app)
Re: Ask HN: What happened to server-side rendering?
#30I've had great success with Vue's builtin SSR - https://vuejs.org/v2/guide/ssr.html Great for FB/twitter share scraping, google scraping, etc. Also much better startup speeds. Once you get it configured it's very little additional work to maintain. I have it set up to do things like determine mobile/desktop depending on the `user-agent` to determine the prerendered page to serve, and then the client side JS takes ove…
Google scraping? How/why can it be used for google scraping? Doesn't google return html result pages?