Mark Ku's Blog

SEO Part 2 — Making Dynamic Sites Friendlier to Google's Crawler

How Dynamic Sites Affect SEO

Today's dynamic sites lean heavily on JavaScript and Ajax-related techniques, but those techniques aren't very friendly to Google's crawler. According to Google's official documentation, the Googlebot crawler understands HTML structure very well, but still has trouble crawling JavaScript and Ajax. To improve crawler-friendliness, Google still recommends pointing content at HTML.

Link to Google's official guide

Key Takeaways from the Official Docs

  • Avoid putting SEO text inside a canvas or image — Googlebot can't recognize those either.
  • Avoid iframes, or link individually to their content — content shown via iframe may not be indexable.
  • Avoid serving different content to users vs. Googlebot. Sneaky redirects
  • Text should still be visible when JavaScript is disabled.
  • Links with parameters aren't crawler-friendly either; pages meant for crawlers should still use static URLs.

Solutions for SEO on Dynamic Sites

As mentioned, dynamic sites aren't very crawler-friendly. As frontend engineers, we can use the following rendering techniques to improve SEO on dynamic sites.

1. Server-side rendering (SSR)

The page data is fully rendered on the server before being returned to the client.

Common frontend SSR frameworks: Next.js in the React ecosystem Nuxt.js in the Vue ecosystem Universal in the Angular ecosystem

Pros

  • When a crawler visits the site, it can immediately get the latest rendered page.
  • Content is delivered to the client faster, especially over slow networks or on slow devices (countries with weaker network conditions). Users don't have to wait for all the JavaScript to download and execute before they see the server-rendered markup, so they see a fully rendered page faster — better user experience.

Cons

  • Rendering is offloaded to the server, which can lead to high server load.
  • Deployment has higher requirements; unlike a single-page app (SPA), an SSR app needs to run on a Node.js server.

2. Page prerendering

2-1. Custom crawler prerendering (Prerender, Playwright)

When a crawler visits the site, the web server or app inspects the crawler's User-Agent and returns a pre-rendered page.

Pros

  • Reduces server load — the crawler can get results without waiting for rendering.

Cons

  • Crawlers can't get the most up-to-date dynamic content.
  • The technical bar is fairly high. You may need to write a job to render or crawl your own site, plus code to detect Googlebot and serve the matching static content.

2-2. Webpack prerendering (webpack prerender-spa-plugin)

Pros:

  • Simple configuration — render HTML based on routes.

Cons:

  • Prerendered code is mixed in with the existing site, so existing code needs adjustments.
  • Doesn't support scroll-based lazy loading or virtual scrolling.
  • You can't operate on the prerender internals, which lacks flexibility.

3. Dynamic Rendering for SEO

Rendertron is a project from the Google Chrome team built with Node.js and Puppeteer. It can solve the problem of dynamic site content that search engines can't crawl.

Dynamic rendering flowchart for browsers and search engine crawlers
Dynamic rendering flowchart for browsers and search engine crawlers

How it works The web server inspects the search engine's bot user-agent and routes the request to your self-hosted Rendertron server. Rendertron uses its cache if there's a hit; otherwise it spins up Puppeteer to crawl your site and bring the content back.

Pros

  • Performance
  • Both freshness and immediacy
  • Less server load

Cons

  • You need to host an additional dynamic rendering service.

P.S. Advanced scenarios — virtualized lists, lazy load, and finer-grained browser control — aren't supported, but the source is open and easy to modify, so you can extend it yourself.

Test

https://render-tron.appspot.com/render/欲動態渲染的網址  

Related documentation

To be continued… in the next chapter I plan to roll up my sleeves and write a crawler for page prerendering.

References

Reference link 1 Reference link 2

Author

Mark Ku

擁有 10+ 年經驗的資深軟體工程師,現為 AI 應用 Builder,專注於大型平台架構與簡化複雜系統設計,從電商系統到訂閱與收費平台,結合 AI Agent、AI 整合與自動化開發,打造高效率且可持續演進的產品技術基礎。Read More

Found this useful?

The author's free tools, daily podcasts and newsletter are all here.

Mark Ku · This article is licensed under CC BY 4.0. Credit the author and link back to the original when reusing it.

Comments

Subscribe to Newsletter

Subscribe to get new posts delivered instantly — never miss a tech share.

By submitting, you agree to receive emails. You can anytime.

Popular Posts

View all
Mark Ku
··602

Oracle Cloud Always Free Tier: Linux Host and Static IP for a $0 Cloud Solution

Oracle Cloud Always Free Tier: Linux Host and Static IP for a $0 Cloud Solution
Mark Ku
··492

Say Goodbye to Postman's Fee Trap! A Hands-on Guide to Bruno, the Open-Source Git-Native API Testing Powerhouse.

Say Goodbye to Postman's Fee Trap! A Hands-on Guide to Bruno, the Open-Source Git-Native API Testing Powerhouse.
Mark Ku
··334

A Free, Open-Source, Notion-like Knowledge Base — A Complete Guide to Deploying and Backing Up Outline Wiki

A Free, Open-Source, Notion-like Knowledge Base — A Complete Guide to Deploying and Backing Up Outline Wiki
Mark Ku
··268

Training Your Own AI Voice: Hardware Requirements, Open-Source Model Comparison, and LoRA Fine-Tuning

Training Your Own AI Voice: Hardware Requirements, Open-Source Model Comparison, and LoRA Fine-Tuning
Mark Ku
··218

Building an Efficient API Management Platform: Deploying Kong Gateway from Scratch - Part 1

Building an Efficient API Management Platform: Deploying Kong Gateway from Scratch - Part 1
Mark Ku
··217

Setting Up Samba on Ubuntu to Share Folders with Windows 11

Setting Up Samba on Ubuntu to Share Folders with Windows 11