News for hackers. Stuff that matters.
Re:The Future (and the Past) of the Web Is Server Side Rende... by ErikAugust on Friday February 03, 2023 @01:16PM (#34645439)
"eventually SPAs -- with no way for search engines to easily index things."

It's funny Google can't index a SPA, given the tie to Angular (2500 apps in use in-house). Wouldn't be so hard to build something that could.

Re:The Future (and the Past) of the Web Is Server Side Rende... by csixty4 on Friday February 03, 2023 @01:28PM (#34645667)
Googlebot has been able to index SPAs since 2019. They use a Headless Chrome instance and allow a number of seconds for things to render after each interaction.
Re:The Future (and the Past) of the Web Is Server Side Rende... by spiffytech on Friday February 03, 2023 @01:40PM (#34645864)
With the caveat that server-generated HTML is indexed immediately, while pages that need client-side rendering get put into a render queue that takes Google a while to get to (days?).
Re:The Future (and the Past) of the Web Is Server Side Rende... by super256 on Friday February 03, 2023 @02:07PM (#34646314)
That's why you write down your use case for every project. Have a news site which needs to be indexed by Google immediately? SSR. Have some Jira or whatever? CSR.

Most CSR applications are behind a login wall anyway. Thinking of the core applications of services like WhatsApp, Discord, Gmail, Dropbox, Google Docs etc.

Bottom line, whether SSR really being “the future”: “it depends”.

Re:The Future (and the Past) of the Web Is Server Side Rende... by capableweb on Friday February 03, 2023 @02:29PM (#34646585)
Hence you don't build documents with SPAs, they are meant for applications. And usually you don't care about indexing the inside of applications, only the landing pages and such, which are documents (should not be a part of the SPA).

A blog built as a SPA? Sucks. A blog built as a collection of documents? Awesome.

Re:The Future (and the Past) of the Web Is Server Side Rende... by npretto on Friday February 03, 2023 @01:28PM (#34645662)
Re:The Future (and the Past) of the Web Is Server Side Rende... by mikece on Friday February 03, 2023 @01:22PM (#34645540)
I would have thought they could spin up headless Chrome instances to simply pull down, render, and then index websites. Apparently this is too resource intensive for them? I'm sure the idea has come up (there's no way I thought of this and they didn't).
Re:The Future (and the Past) of the Web Is Server Side Rende... by xemoka on Friday February 03, 2023 @01:24PM (#34645584)
You'd think right? There must be other reasons then... how does Google benefit from not building better SPA crawling infrastructure? It's certainly gotten _better_ over the last few years, but still seems lacking.