NewCode CLOUD — 20% off your first month on all cloud VPSClaim

How to Speed Up a Website for Visitors in Mainland China (Without an ICP Licence)

A website that loads in one second in London or Singapore can take ten seconds — or never finish — in Beijing. Many owners blame the server, upgrade it and see no change, because the server is only part of the story. Pages aimed at mainland visitors are often slowed down by resources that are blocked or slow in China, by heavy images, and by the route the traffic takes across the border.

This guide works through the causes in order of impact, for sites hosted outside mainland China (which do not need an ICP filing).

Step 1: Measure from inside China first

You cannot fix what you cannot see. Testing from your own office abroad tells you nothing about Chinese users.

  • Online tools: ITDOG, 17CE, Boce and similar services load your page or ping your server from many Chinese cities and carriers.
  • Browser test from China: if you have a colleague or a cloud machine in China, open the page with the browser’s developer tools (Network tab) and sort by time. Look for requests that take many seconds or fail.
  • Route tests: ping and MTR to the server’s IP at 21:00 Beijing time — see testing latency to mainland China.

Typical findings fall into two groups: the connection is slow (high latency, loss), or the page is slow (blocked or heavy resources). They need different fixes.

Step 2: Remove resources that are blocked or slow in China

This is the most common cause of extremely slow or “hanging” pages. A browser waits for every script in the <head> before rendering; if one of them never loads, the page appears blank until the request times out.

Frequent offenders:

Resource Problem in China Fix
Google Fonts (fonts.googleapis.com) Often slow or unreachable Self-host the font files on your own server
Google reCAPTCHA Unreliable Use a CAPTCHA that works in China, or reCAPTCHA via recaptcha.net
Google Analytics / Tag Manager Can be blocked or slow Load asynchronously; consider a self-hosted analytics tool
Google Maps Blocked Use a map provider available in China, or a static image
YouTube / Vimeo embeds Blocked Host video yourself or use a provider that works in China
Facebook, X (Twitter) widgets and pixels Blocked Remove from pages targeting China
Some public CDNs for JS libraries Variable Host jQuery, Bootstrap etc. on your own domain

How to find them: in the browser’s Network tab, filter by domain, or view the page source and search for googleapis, gstatic, facebook, twitter, youtube. In WordPress, many come from the theme and plugins; the plugin “Self-hosted Google Fonts” or theme settings usually handle fonts.

Rule of thumb: for pages aimed at Chinese visitors, every file should load from your own domain or from a service known to work well in China.

Step 3: Choose server location and route deliberately

Physics and routing set the floor for every request:

Location Typical round trip to southern China on a good route
Hong Kong ~10–20 ms
Japan (Tokyo) ~50–80 ms
Singapore ~60–90 ms
US west coast ~130–180 ms

The route matters as much as distance. A Hong Kong server on a congested standard route can perform worse at 9 p.m. than a US server on CN2 GIA. Choose a China-optimised line (CN2 GIA or three-network premium) if most of your visitors are in mainland China — see China carrier routes explained. Test with the provider’s test IP before buying.

Step 4: Cut the number of round trips

On a 40 ms path every round trip costs 40 ms; on a lossy path it costs much more. Reduce them:

  • Enable HTTP/2 (or HTTP/3) on Nginx or Apache so many files share one connection. In Nginx: listen 443 ssl http2; (or http2 on; on Nginx 1.25+).
  • Use TLS 1.3, which needs one round trip less than TLS 1.2 to set up a connection.
  • Combine and defer scripts. Load non-critical JavaScript with defer or async.
  • Avoid redirect chains. http://example.com → https://example.com → https://www.example.com/ is three round trips before the page even starts.
  • Use one domain for your own assets rather than several subdomains, each needing a DNS lookup and TLS handshake.

Step 5: Make the page lighter

Bandwidth is limited on premium routes, and mobile users in China often visit on 4G/5G. Every megabyte counts:

  • Images: convert to WebP or AVIF, resize to the displayed size, and lazy-load images below the fold (loading="lazy").
  • Compression: enable gzip or Brotli for HTML, CSS, JS and SVG — see Nginx gzip, Brotli and caching.
  • Fonts: Chinese web fonts can be several megabytes. Use system fonts ("PingFang SC", "Microsoft YaHei", sans-serif) or subset the font to the characters you use.
  • Third-party chat widgets and trackers: each adds scripts and connections. Keep only what you need.

Step 6: Cache aggressively

  • Browser caching: long Cache-Control lifetimes for versioned static files (CSS, JS, images) mean returning visitors download almost nothing.
  • Page caching: for WordPress and other CMSs, a full-page cache (Nginx FastCGI cache, a caching plugin) lets the server answer without running PHP and database queries. See WordPress speed optimisation.
  • Object caching: Redis for database-heavy sites.

Step 7: CDN — useful, but choose carefully

A CDN stores copies of your files near users. For China, there are two very different kinds:

  • CDNs with nodes inside mainland China give the best performance there but require an ICP filing for your domain.
  • Global CDNs without China nodes serve Chinese visitors from Hong Kong, Japan, Singapore or the US. Performance depends on that CDN’s own routes into China and can be worse than a well-connected Hong Kong server, especially at peak times.

For many sites without ICP, the most reliable setup is a Hong Kong server on a China-optimised route serving the site directly, with good caching and compression. If you use Cloudflare, read using Cloudflare with your origin server and test from China with it switched on and off — results vary.

Step 8: TCP tuning on the server

Enable BBR congestion control. On paths with some packet loss it keeps transfers fast where the default algorithm slows down — see enabling TCP BBR. It helps downloads of large pages and files most.

Testing checklist

  • Page tested from several Chinese cities and carriers
  • No requests to Google, Facebook, X, YouTube or other blocked domains
  • Fonts and JS libraries self-hosted
  • HTTP/2 or HTTP/3 and TLS 1.3 enabled
  • Images resized, compressed, lazy-loaded
  • gzip/Brotli and browser caching on
  • Full-page cache for CMS sites
  • Server on a China-optimised route, tested at evening peak
  • BBR enabled