Forums Forums White Hat SEO Will pre-rendering an SPA improve my SEO?

  • Will pre-rendering an SPA improve my SEO?

    Posted by bertoanto on November 27, 2023 at 10:38 pm

    Hello!

    I run an SPA selling digital products. Our meta and hreflangs are dynamically injected via JavaScript. Some pages are indexed correctly, but we’ve noticed errors in Google Search Console and in the Google results, like no canonical selected (although it’s in the page source) and a wrong title (using the index.html title, not the JavaScript-rendered title).

    I suspect there’s some delay in JavaScript loading and sometimes the crawler doesn’t get the JavaScript content. We are considering pre-rendering the pages with Puppeteer and serving it to crawlers. According to Google’s webmaster guidelines, it’s not cloaking if the content is nearly the same. And I have seen posts from technologies that are capable of pre-rendering that SEO gets a huge improvement after that.
    Any experiences or insights on this?

    Thanks!

    bertoanto replied 5 months ago 2 Members · 1 Reply
  • 1 Reply
  • jb_dot

    Guest
    November 28, 2023 at 12:00 am

    Yeah – we much prefer Server-Side Rendering when possible (dynamic rendering just for Google is ok, but the documentation has been updated to say this is a workaround), but we find that full SPA’s will eventually get indexed, but it’s not as fast or consistent. You can make it work – but it’s easy to start with a static copy for crawlers.

Log in to reply.