Live data from Hacker News

Ask HN: What happened to server-side rendering?

news.ycombinator.com

51–60 of 74 posts

Re: Ask HN: What happened to server-side rendering?

#51
post #45
post #41

Earlier quoted context omitted.

I believe they mean Google can easily scrape your page. Otherwise known as "SEO" in this context.

Thanks. I know what SEO is, the word "scraping" confused me, because it usually refers to people scraping the pages of various services.

Yes, and in this case it also means one party scraping the webpage of another.

I also had to read the comment twice to understand it.

Re: Ask HN: What happened to server-side rendering?

#54
post #47

Earlier quoted context omitted.

SSR for the purposes of SEO can be achieved in a simpler way, without complicating your whole app to support SSR. Just pre-render the page in headless chromium / puppeteer when a search engine bot requests it and return the resulting html.

This is pretty slow though right? Those speed penalties will impact your google search ranking.

I haven't had a chance to try it myself yet, but from what I've read the extra delay is sub 100ms. Caching or pre-rendering the HTML output for bots in advance is an option too depending on the particular use case.

I would certainly consider this ahead of SSR driven by "isomorphic" Javascript for frontend-heavy apps.

Re: Ask HN: What happened to server-side rendering?

#55
post #31
post #13

The main advantage of server-side rendering of client-side templates is cutting your initial load time to a bare minimum (not having to wait for scripts to load/compile, taking advantage of page caching, etc.). However, this usually only matters when you're afraid of users getting impatient and bouncing, which tends to be true of sites that mainly display content and don't have a ton of interactivity, and sites like…

A big one for the need of server side rendering is SEO. Without server side rendering, most web crawlers don't have access to your content and you can't rank for SEO.

Funny that JS has the same SEO problem Flash had.

Re: Ask HN: What happened to server-side rendering?

#56
post #55
post #31

Earlier quoted context omitted.

A big one for the need of server side rendering is SEO. Without server side rendering, most web crawlers don't have access to your content and you can't rank for SEO.

Funny that JS has the same SEO problem Flash had.

Not really? They are both imperative programming languages and not markup languages, so it’s unsurprising that they have this in common.

Except they sort of don’t have it in common now because Google executes JS. You can even see a PhantomJS rendering error in their search result previews if you get “lucky”.

Re: Ask HN: What happened to server-side rendering?

#57

Earlier quoted context omitted.

He/she is probably talking about single-page apps. But it isn't clear.

He/she is probably talking about single-page apps If you want to be pedantic about it, sure.

I am not being pedantic. You and the op are having difficulty with specificity. I was clear about that and somehow that means I should be called names and down voted for asking an appropriate question.

If I wanted to trolled by framework children I would go back to reddit.

Re: Ask HN: What happened to server-side rendering?

#58
post #25

Phoenix.LiveView — you can't ignore it, the coolest thing happening right now about server-side rendering. Demo: 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.

Calling it isomorphic might be a disgrace for mathematics, but in terms of the Greek meaning of single form, it’s accurate.

Re: Ask HN: What happened to server-side rendering?

#59
I built a solution for server side rendering using Elixir / Plug and Chrome Headless via Chroxy. It simplifies server side rendering greatly since it doesn’t care about the client side library you use. I have been using it to power my site[1] which is written in React.

I also happen to make the Elixir Foundation series of videos[2] that show how to do serverside rendering using elixir. So I’m dog fooding the dog food.

[1] https://www.codemy.net

[2] https://www.codemy.net/sets/elixir-foundation

Re: Ask HN: What happened to server-side rendering?

#60
post #25

Phoenix.LiveView — you can't ignore it, the coolest thing happening right now about server-side rendering. Demo: 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.

Calling it isomorphic might be a disgrace for mathematics, but in terms of the Greek meaning of single form, it’s accurate.

Please don't be offensive to mathematicians.
Post reply on HN