China Web Guide

How Baidu Crawls and Renders JavaScript

Baiduspider has rendered JavaScript since 2017. What that does and does not change for crawling and indexing.

In a Chengdu co-working space, a developer in a grey fleece studies server logs full of Baiduspider-render requests beside Baidu's crawl diagnosis page, as a colleague points with a pen at the screen.

Does Baidu render JavaScript? Yes. Baidu has sent a rendering crawler, Baiduspider-render/2.0, to fetch CSS, JavaScript and images since 24 March 2017. What Baidu has never published is how much of the web that crawler renders, or how long a page waits before it does.

The old line that Baidu can’t read JavaScript is wrong. Assuming it renders everything, every time, is a guess. Server-rendered HTML takes the guess away, and it’s how we build sites that need Baidu traffic. We read every Baidu page cited here on 2 November 2026.

QuestionWhat Baidu has publishedDate
Does Baiduspider render JavaScript?Yes, through Baiduspider-render/2.0, which fetches CSS, JavaScript and images24 March 2017
How much of the web does it render?Nothing publishedNone
How long does a page wait for rendering?Nothing publishedNone
How large a page does the crawler read?Keep source under 128k, main content first, or the crawl may cut it off22 November 2019
How do I know a visitor is really Baiduspider?Reverse DNS to *.baidu.com or *.baidu.jp, then a forward lookup back to the same IP8 February 2022
Does submitting a URL get it indexed?No. Submission speeds discovery and guarantees nothing19 April 2024

What Baiduspider fetches, and what happens to the response

Baidu sends two crawler identities. Baiduspider/2.0 is the one that fills most server logs, and it asks for the page. Baiduspider-render/2.0 asks for what the page needs to draw itself: stylesheets, scripts and images. Each comes in a desktop and a mobile string, and the render crawler has a third for Baidu Smart Mini Programs (智能小程序).

So the first thing Baidu sees is the HTML your server returns. If the body text is in that response, along with the title and the links, Baidu has it all on the first fetch. If they arrive later from a script, they depend on the render step.

Size matters too. Here Baidu is unusually specific. Its 2019 site-building whitepaper describes a site whose content was generated by JavaScript, which sent the crawler a special 164k page with images encoded inline and the main text at the bottom. The crawl cut the page off, the text was never reached, and the page was judged thin.

Page source should usually stay under 128k, and the main content should come first, because an overlong page may be truncated when it is crawled. Source: Baidu Search Resource Platform (百度搜索资源平台), Baidu Mobile Search Site-Building Whitepaper (百度移动搜索建站优化白皮书), November 2019. https://ziyuan.baidu.com/college/articleinfo?id=1710

Your own access logs show whether the render step is reaching you. Filter them for the two user-agent strings, then look at what each one asked for.

Baiduspider/2.0 lines should show page URLs. Baiduspider-render/2.0 lines should show files under your theme, plugin or build folders: the stylesheets and scripts. If the render crawler never appears, or appears only with 403 and 503 responses on those files, it isn’t getting what it needs. Run the reverse DNS check below on a sample of those IPs first, since fake crawlers fill logs too.

Does Baidu render JavaScript? What the 2017 notice says

The notice runs to one paragraph and two user-agent strings. Baidu wanted CSS, JavaScript and image files so it could understand pages better, and it started by testing the new crawler on a sample of quality sites.

From 24 March 2017, Baidu Search began fetching CSS, JavaScript and images with a new rendering user agent, Baiduspider-render/2.0, starting with a sample of quality sites, and asked site owners not to block it. Source: Baidu Search Resource Platform (百度搜索资源平台), notice of the new rendering crawl UA, March 2017. https://ziyuan.baidu.com/wiki/990

Two years later, Baidu’s own mobile optimisation guide still told site owners the opposite.

Baiduspider can currently only read text. Use text rather than Flash, images or JavaScript for important content or links, and do not use Ajax where the search engine should read, such as titles, navigation and content. Source: Baidu Search Resource Platform (百度搜索资源平台), Baidu Mobile Search Optimisation Guide 2.0 (百度移动搜索优化指南2.0), March 2019. https://ziyuan.baidu.com/college/articleinfo?id=1315

Both pages were still live on Baidu’s platform when we read them on 2 November 2026, each under its original date. That goes a long way to explaining why the “Baidu can’t read JavaScript” line survives. Anyone checking Baidu’s own guidance can still find it there.

Baidu documentPublishedWhat it says about JavaScript
Notice of the new rendering crawl UA24 March 2017Baiduspider-render/2.0 fetches CSS, JavaScript and images; please don’t block it
Mobile Search Optimisation Guide 2.04 March 2019Only text is read; keep important content and links out of JavaScript; no Ajax for titles, navigation or content
Mobile Search Site-Building Whitepaper22 November 2019A JavaScript-built site lost its content to truncation; keep source under 128k, main content first, scripts at the end or async
How to identify Baiduspider8 February 2022Lists Baiduspider-render/2.0 as a genuine crawler on desktop, mobile and Mini Programs

Taken together, Baidu’s documents back one claim and no more: Baidu renders JavaScript, and it has never said how far that goes. So “Baidu ignores JavaScript” is out. So is “Baidu renders like a browser”.

Verify the crawler by reverse DNS, never by user agent

A user agent is a header, and anyone can send it. Scrapers send Baiduspider strings all the time.

Baidu’s own check is a two-way lookup. Run a reverse DNS lookup on the IP in your log. A genuine crawler resolves to a hostname ending in .baidu.com or .baidu.jp. Then look that hostname up forward and confirm it returns the same IP.

A genuine Baiduspider hostname ends in .baidu.com or .baidu.jp, and anything else is impersonation. A forward lookup of that hostname must return the original IP. Baidu says it cannot publish its crawler’s IP ranges because they change. Source: Baidu Search Resource Platform (百度搜索资源平台), February 2022. https://ziyuan.baidu.com/college/articleinfo?id=3378

Once a request passes, allow it, whichever of the two identities it carries. A rule that lets Baiduspider/2.0 through and rate limits the render crawler gives Baidu your HTML and starves it of the scripts it would need to render anything else. The edge-rule version of that check is in our guide to Baiduspider and firewall rules.

Submission and indexing: push, and what replaced fast inclusion

Submission is about discovery. It tells Baidu a URL exists. How that URL gets rendered is a separate matter.

The everyday channel is the push endpoint, data.zz.baidu.com/urls, which a site calls with each new URL. On WordPress, maintained plugins do it for you.

baidu-submit-link 4.5.1 (updated 7 September 2026) and zhanzhangb-baidu-submit 1.9.6 (updated 16 September 2026) both post new URLs to data.zz.baidu.com/urls. Source: WordPress.org plugin directory and ChinaWebFoundry reading of the plugin code, 29 October 2026. https://wordpress.org/plugins/baidu-submit-link/ https://wordpress.org/plugins/zhanzhangb-baidu-submit/

The normal inclusion tool shortens the time it takes the crawler to discover a site’s links. It cannot decide whether the content is indexed, and Baidu does not guarantee that submitted links will be. Source: Baidu Search Resource Platform (百度搜索资源平台), normal inclusion tool page, read 2 November 2026. https://ziyuan.baidu.com/linksubmit/index

Fast inclusion (快速收录) is gone.

Baidu took fast inclusion offline on 26 April 2024, launched fast crawl (快速抓取) in its place and recalled the old fast inclusion quotas. Source: Baidu Search Resource Platform (百度搜索资源平台), notice on upgrading the fast inclusion tool, April 2024. https://ziyuan.baidu.com/wiki/3546

Fast crawl gets submitted pages crawled first and guarantees nothing about indexing. VIP partners receive it automatically; other sites can only earn it through platform activities. Source: Baidu Search Resource Platform (百度搜索资源平台), fast crawl guide, April 2024. https://ziyuan.baidu.com/college/articleinfo?id=3549

Sitemaps have their own gate.

Baidu shut sitemap submission for sites in accounts without real-name verification and for low-quality sites, and adjusted daily API push quotas. Source: Baidu Search Resource Platform (百度搜索资源平台), notice on recalling submission quotas, September 2023. https://ziyuan.baidu.com/wiki/3531

A new foreign site therefore often starts on the push endpoint alone. Our guide to submitting URLs to Baidu walks through quotas and the manual route, and the fast inclusion explainer covers who qualifies for fast crawl.

How long until Baidu indexes a new site

Baidu publishes no timetable for indexing a new site. We searched its platform for one in October 2026 and found only pages about retired tools.

We plan for two to four weeks to first indexing, on a new site whose HTML carries its content and whose firewall lets the crawler in. That is our own planning figure. Baidu promises nothing of the kind.

A page whose text only exists after rendering adds an unknown to that estimate. Baidu hasn’t said how long the render step takes, so any figure for it would be invented.

Blocking Baiduspider by accident: plugins and robots.txt

Read this section first if Baidu traffic stopped overnight.

When a WordPress site drops out of Baidu, the cause is often a security or cache setting someone switched on for a different reason. Here is what the defaults do, read from each plugin’s code.

Plugin and versionDefaultWhat can go wrong
Wordfence 9.0.2All five rate limits ship disabledIts only crawler policy protects verified Google crawlers. Turn crawler rate limits on and Baiduspider gets a 503 past the limit
Solid Security 10.0.6 (Kadence Security)Default Ban List offWhen switched on, it returns 403 to 360Spider, YisouSpider and EasouSpider. Baiduspider is not on the list
LiteSpeed Cache 7.9.2User-agent exclusion list emptyNothing names Baiduspider, so nothing blocks it by default
W3 Total Cache 2.11.0Rejected user-agent lists emptySame: no rule names Baiduspider

Wordfence 9.0.2 ships every rate limit disabled and verifies Google’s crawlers only. Solid Security 10.0.6 ships its Default Ban List off. LiteSpeed Cache 7.9.2 and W3 Total Cache 2.11.0 ship their user-agent exclusion lists empty. Source: ChinaWebFoundry reading of each plugin’s code from the WordPress.org plugin directory, 9 October to 2 November 2026. https://wordpress.org/plugins/wordfence/ https://wordpress.org/plugins/better-wp-security/ https://wordpress.org/plugins/litespeed-cache/ https://wordpress.org/plugins/w3-total-cache/

Wordfence’s allowlist takes IP addresses only, and Baidu won’t publish its ranges, so there’s no clean way to exempt Baiduspider there. Solid Security’s list matters for the other Chinese engines: 360Spider belongs to 360 Search and YisouSpider to Shenma.

Then check robots.txt. A Disallow line on /wp-content/ or /wp-includes/ on a WordPress site, or on /_astro/ where an Astro build keeps its scripts and styles, refuses the render crawler the files the 2017 notice says it needs.

Server-side rendering as risk reduction

Baidu has never written that it requires server-side rendering. We recommend it as the cautious engineering choice, because the crawler’s render coverage is undocumented.

Put these in the HTML your server sends, before any script runs:

  • the title and meta description
  • the main text of the page
  • navigation and internal links
  • the canonical tag and the Baidu site verification tag

WordPress already works this way: PHP builds the page on the server. Astro pre-renders pages to HTML at build time by default. The risk sits with single-page applications on React, Vue or Angular, where the first response is an empty shell. Those need server rendering or pre-rendering for the pages you want in Baidu.

Watch the hybrids as well. A WordPress theme that loads product grids or reviews through a script after the page arrives, or a headless front end that fetches content from an API in the browser, has the same exposure for those blocks. The page looks complete to a visitor, while the raw HTML holds an empty container where the block should be.

Last, test what Baidu actually received. Crawl diagnosis (抓取诊断) in the Baidu Search Resource Platform fetches a URL as Baiduspider and shows the response.

Crawl diagnosis allows 70 fetches a week per site and shows the first 200KB of the content Baiduspider can see. Source: Baidu Search Resource Platform (百度搜索资源平台), crawl diagnosis tool page, read 2 November 2026. https://ziyuan.baidu.com/crawltools/index

If the body text is in that 200KB, you’re no longer betting on the render queue. Ranking is a separate question, covered in our guide to Baidu SEO ranking factors. For the build itself, our page on launching a website in China sets out how we plan hosting, filing and rendering together.

Frequently asked

Does Baidu index content loaded by Ajax after the page loads?

It may, through the render crawler, but Baidu has never said how often or how quickly. Its own 2019 mobile guide still advises against Ajax for titles, navigation and content. If a section matters for search, send it in the first HTML response and keep Ajax for interactive parts such as filters.

Does Baidu read the schema.org JSON-LD that Yoast adds?

No current Baidu documentation says it does, so don’t plan around it. When we read their code in October 2026, Yoast and Rank Math each output one Baidu-specific tag: the site verification meta tag. Our guide to Baidu structured data covers what Baidu does document.

Should I block Baiduspider-render to save bandwidth?

Baidu asked site owners not to when it launched the crawler in March 2017. Blocking it leaves Baidu with only your raw HTML. With complete HTML the loss is small. Anything drawn by scripts, though, Baidu can’t see. Throttle at the server if load is a problem, and verify by reverse DNS first.

How can I tell whether Baidu rendered my page?

Baidu offers no report on rendering. Crawl diagnosis shows what Baiduspider fetched from a URL, so check whether your main text is in that response. If it is, rendering stops mattering for that page. If it isn’t, the text depends on a render step Baidu doesn’t report, and server-rendering that page is the fix we’d make.

Does pushing a URL make Baidu render it sooner?

No. Push and fast crawl affect when the crawler fetches a URL. Baidu says neither guarantees indexing, and it publishes nothing on how rendering is scheduled. A pushed URL with complete HTML is in the best position, because whatever Baidu fetches first already carries the content.

Need help with this?

ChinaWebFoundry handles WordPress projects in China end to end. If any of this feels like more than you want to tackle alone, get in touch.

Talk to Us