Blog / Does Gatsby work in China?

Does Gatsby work in China?

TLDR; The average Gatsby site takes 32.1 seconds to load in China. Not to mention, the average Gatsby site fails to deliver 29.1% of its web resources when compared to the website delivered elsewhere globally.
This article goes into the reasons why Gatsby-based websites don’t work in China by default and a few actionable steps you can take to resolve them.  


What is Gatsby?

Gatsby is an open-source framework for building CMS, API, and databases. Gatsby differentiates itself as a static site generator (SSG) at its core, which separates content, templates, and databases for increased performance, scalability, and reliability.

Gatsby is a versatile React-based framework that is often used by content management systems (CMS) such as Drupal, WordPress, and Contentful. Its features include tools to publish, manage and deploy digital content in a streamlined, agile manner.

Some examples of companies that use Gatsby include IBM, Diem, and Daniel Wellington.

Gatsby in China*

Gatsby is a powerful tool globally. However, in China…

The average Gatsby site
takes 32.1 seconds to load in China

The average Gatsby site only successfully delivers 70.9% of its web resources in China

*The numbers are collected based on findings from the Chinafy Global Speed Tests.


Why Gatsby Websites Don’t Work in China

It’s not just Gatsby. Technical incompatibility impacts any global website to some extent, causing the average website to load in 30 seconds in China.

Global websites face a broad range of technical issues which boil down to i) infrastructural incompatibility and ii) code-based incompatibility.

i) Infrastructural incompatibility: Hosting location and choice of CDN

Most Gatsby websites use Gatsby Cloud for faster build times and deployment. Its edge network leverages Fastly as the primary CDN.

Fastly is great globally, but in China, the experience is far from that.

See how Fastly performs in China (in teal).

Source: Chinafy

Gatsby users who do not use Gatsby Cloud (or Fastly) are not immune to issues commonly found in cross-border data transmission. These include low throughput and high latency in China.

ii) Code-based incompatibility: 3rd-party plugins, blocked resources & custom codes…

You may know Google, Vimeo and Facebook are inaccessible in China. And the same can be said of supporting resources such as Google fonts, Vimeo videos, and Facebook trackers.

An example of Facebook resources loading in >30 seconds in China.


And these are just a few out of the thousands of examples that face incompatibility issues in China.

You could remove or replace these entirely, but not without researching, testing, and deploying.

This repeats with every roadblock – and chances are, there could be thousands


Why websites don’t work in China?


How to make Gatsby Work in China

That said, not all hopes are lost on Gatsby sites. Like any global website, Gatsby websites can benefit from technical actions such as:

Hosting Gatsby websites in China

Using a CDN

Using Chinafy


i) Host your Gatsby site in China

When it comes to regional hosting, the expected steps are that you’d -

Build a new site

Get a server, and then

Host your site there

The case for China is, however, much more complicated.

Timeline: Companies going the traditional onshore route tend to take an average of 3-4 months of website development and another 6-8 more to apply to become a licensed web content provider.

Expertise: Common web resources (e.g., YouTube) are slow if not made inaccessible in China. You’ll have an expert headcount to manage a list of these resources to exclude or replace on your localised site in order to achieve and then maintain performance in China. This applies to websites hosted onshore or otherwise.

Costs: A fully onshore website costs between $42K to $100K from the get-go. If you’re looking to maintain the website, it’s a common practice to budget for hiring an agency/in-house headcount.


ii) Use a China CDN

China CDN can definitely deliver some forms of acceleration in China, but…

China CDNs - like all CDNs - don’t resolve or optimise any third-party, code-based incompatibility issues which means the Gatsby site can still be broken, albeit faster.


iii) Chinafy

Last but not least, there is Chinafy, which can do better, and faster.

Chinafy optimizes Gatsby websites to achieve virtually onshore performance with a full offshore set-up. Chinafy resolves over thousands of code-based incompatibility, and powers the website with CDN for China delivery.

The outcome is a much faster, optimised, fully-managed version of the global site in China.

The best part? The launch takes only ~1.5-2 weeks.


Want to make your Gatsby website work in China?
Contact Chinafy to learn more!

Don't get left behind.
Optimize your website for the world's fastest-growing consumer market. Start today, cancel anytime.
Make your website work in China
Fill out the form and one of our Chinafy team members will reach out to you within 1 business day to book an initial call or with a plan for next steps.
check30%-40% faster compared to using a CDN alone.
checkVerifiable results in just 2 weeks, instead of 1-2 years.
checkLittle to no action required from your IT teams.
"Chinafy has made it possible for us to be sure that our web visitors in China have the same good experience as all our other visitors in the rest of the world."
Michela Nalin Francek, Marketing Manager for Nolato
"Over 1 million engineers use SnapEDA each year all over the world. We were attracted to Chinafy's service because of how easy they made it to support the Chinese market."
Natasha Baker, CEO & Founder of SnapEDA
We are very happy with working with Chinafy. They went above and beyond to ensure we help MIT Professional Education deliver world-class online education in China.
Ignacio Cerro, CFO, Global Alumni for MIT Professional Education
"Consistency is crucial for us.
Chinafy fits the bill of what we were looking for."
Jonathan Rhodes, Marketing Technology Manager of Registrar Corp
"The process was super easy and I'm really glad we selected your team. The experience has been beyond my expectations."
Nicolas Duchesne-Lafoest, Product Marketing Manager 
"Chinafy went above and beyond to help me produce my event. I'm not sure I would have been successful without them. The client was elated that we managed to fulfill the request to live-stream into China so quickly."
Kevin Denham, Technical Director at ADM Productions
To start, please share a bit more about you.
Which website do you want to Chinafy?
Tell us your name?
What best describes your company role?
What's your Work Email Address?
What would you like to discuss?
Have a discount code?
By clicking 'Get Started', I also agree to Chinafy's Terms of Service & Privacy Policy.
close
Thanks for getting in touch!
One of our China experts will be in touch with you via email within the next 24 hours with

1 - Expected post-Chinafy results
2 - Your Custom Plan
3 - Next steps.

P.S. Make sure to check your promotions inbox in case our message lands there.

Please feel free to check out our case studies or blog in the meantime.
[[embed: get started form inline type]]

Related Stories

Load More
×

Notey will use the information you provide on this form to be in touch with you and to provide updates and marketing. Please let us know all the ways you would like to hear from us:

You can change your mind at any time by clicking the unsubscribe link in the footer of any email you receive from us, or by contacting us at community@notey.com. We will treat your information with respect. For more information about our privacy practices please visit our website. By clicking below, you agree that we may process your information in accordance with these terms.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices here.