3 ms·
Not convincing. Even a PHP page wouldn't be indexed as it was served if it loads JS scripts. And if your page isn't running JavaScript, comparing SPA and SSR is
by roncesvalles 4y ago
Not convincing. Even a PHP page wouldn't be indexed as it was served if it loads JS scripts. And if your page isn't running JavaScript, comparing SPA and SSR is moot. One could just use one of the hundred odd HTML templating tools to produce a static page.
- doodlesdev 4y agoPlease read a bit of the history of this debate: https://stackoverflow.com/questions/36702789/google-crawler-for-single-page-application https://stackoverflow.com/questions/36702789/google-crawler-... Till today the Google Crawler is the only one that gets even near good search results of SPAs. That's because they have to run a full browser to load every page to parse it. Every. Single. Page. That's why it is hard to do correctly. Read a bit about their current approach here: https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics#what-the-user-sees-what-the-crawler-sees https://developers.google.com/search/docs/crawling-indexing/... Specially: > Keep in mind that server-side or pre-rendering is still a great idea because it makes your website faster for users and crawlers, and not all bots can run JavaScript. Recently in 2019 Bing Bot just gave up and is using the same approach a Google: https://blogs.bing.com/webmaster/october-2019/The-new-evergreen-Bingbot-simplifying-SEO-by-leveraging-Microsoft-Edge https://blogs.bing.com/webmaster/october-2019/The-new-evergr... So nowadays having a SPA isn't as bad for SEO as it used to be, but again, and I'll keep nailing on this, that is only because we spent the entire last decade throwing millions of dollars and hundreds of hours of engineer time to make SPAs a viable option.