Find us at BrightonSEO 25/26 April - STAND 18! Fill your swag bag!

How to see what is pre-rendered with JavaScript for search

Search engine crawlers and social sharing platforms commonly favour sites that return content rendered as static html.  If your site is a SPA, PWA, or depends on JavaScript to render indexable content – you might not be visible on these platforms.

Google for example has only started crawling sites using a modern Chrome JavaScript browser, previously they were stuck crawling with an ancient Chrome 41.

Search engines require extra resources on their server to render JavaScript, your site will likely be added to a que and may not get updated in the SERPs as quickly as server side rendered page.

Using Headless Chrome

A common method for turning client side rendered app into a server side rendered site is to combine Headless Chrome and an Express server to create your pre-rendered HTML. This can become costly if you are processing lots of JavaScript into HTML – you may decide to detect the client connecting to your site and only serve it to Google and selected user agents.

Using Sitebulb to see what html is pre-rendered

Setting up a crawl is simple and only requires a couple of steps:

Create a html crawl and go into the advanced settings:

Advanced crawl settings

Set the User Agent to Use to Google Smartphone and press the Start Audit button.

Google bot as your User Agent

Potential issues and advice

There are some caveats, if the site is validating Googlebot against their published IP addresses then this method will not work.