Byte Ebi's Logo

Byte Ebi 🍀

A Bit everyday A Byte every week

Enhancing SEO for SPA with Prerender

Addressing SEO challenges for CSR web pages, demonstrating both self-hosted and SaaS solutions


A Single Page Application (SPA) website utilizes Client-Side Rendering (CSR) to render its content.
Upon initial loading, the server only returns the root component, and subsequent data is fetched through API interactions.
However, for web crawlers responsible for ranking websites, the content obtained during crawling may appear empty.
While Google claims that their crawler executes JavaScript, other search engines may not necessarily do so.
To address this issue, a Prerender service is employed to achieve pre-rendering for web crawlers, optimizing search results.

Setting Up Subdomain with Cloudflare and Customizing GitHub Page URL

After purchasing a domain, you can set up subdomains for different websites. This article demonstrates using Cloudflare + GitHub Page for a static website.


Previously, I purchased my own domain.Now, I want to use Cloudflare DNS service to set up a subdomain.
And assign it to a specified GitHub Page project as a customized URL.
Once you master this skill, with just one main domain, you can generate different subdomain URLs as needed.
All major DNS service providers offer this feature, and this article uses Cloudflare as an example.

Recent Posts