3 ms·
I need a quick primer on how spa does seo? Do they "server-render" the individual instances of pages too?
by fxfan 8y ago
I need a quick primer on how spa does seo? Do they "server-render" the individual instances of pages too?
- hskaw 8y agoTry to use Discourse with JS off, for example.
- empthought 8y agoSearch engines execute the JavaScript...
- Veen 8y agoGoogle does, but not reliably, especially for newer (ES6) JavaScript features. Bing and DuckDuckGo do not render complex JavaScript apps. Neither does Yandex, I believe.
- armandososa 8y agoYes. Take a look into Next.js which does this using React and it's really simple to start with.
- 33degrees 8y agoIn theory google can crawl SPAs, but in practice it doesn't work all that well. Server side rendering is one solution, a pre-rendering proxy is another.
- nlh 8y agoNot by default. The big frameworks are first and foremost client side frameworks, which means in an extreme case the server is just sending down <html><script src=.../></html> (basically), and the client framework handles all of the rendering/data fetching. BUT — with a bit of work, you can set things up to do server side rendering. It requires you use Node at some point in your server stack, and you essentially call the library (on the server) and run their RenderToString function (each has a slightly different implementation). There are frameworks for this (next.js, nuxt.js) or you can roll your own - it’s not terribly complicated.
- Geee 8y agoYou simply do not make SPA on crawlable URLs, so that's not a problem. You use SPA when the page is behind authentication and is customized for the user.