Page Speed and AI Crawlers: Don't Get Timed Out
By Michelle S.
Quick answer
Crawlers give up on slow pages. If your HTML takes seconds to respond, AI systems fetch fewer pages, retry less, and may summarize from partial content. Speed is a crawl-budget problem before it is a ranking problem.
A crawler is a client with a timeout. It sends a request, waits, and moves on. Most AI crawlers do not run a full browser, so they see the HTML your server returns, not the page your visitor sees after scripts run. If that response is slow or empty, the content may as well not exist.
What slow looks like to a crawler
- Time to first byte above a second or two.
- HTML that waits on a database, a personalization layer or an API.
- Cold serverless starts on every fetch.
- Bot challenges and interstitial pages instead of content.
- Content that only appears after client-side rendering.
Put the answer in the first response
Server-rendered HTML with the main text, headings and links is the most reliable format for AI crawlers. If your framework hydrates a client app, make sure the server still returns the article body. A page that requires JavaScript to show its content is a page many crawlers cannot read.
The fixes that move TTFB
- Cache HTML at the edge and purge it on publish.
- Remove blocking third-party scripts from the critical path.
- Keep database queries off the request path where possible.
- Use a CDN close to your audience and to crawler regions.
- Compress responses and enable HTTP/2 or HTTP/3.
Rendering crawlers are not the same
Googlebot can render JavaScript, though it queues the work. Most AI crawlers do not render at all. Optimizing only for Googlebot can leave your pages invisible to the systems you care about. Test with a plain HTTP request and read what comes back.
Measure the right number
PageSpeed Insights and CrUX tell you about real-user experience. They do not tell you what a crawler saw at 3 a.m. from a data center. Check server logs for crawler user agents, measure response time by path, and fetch key pages with curl to see the raw HTML and timing. Watch the 75th percentile of TTFB under crawl load, not just a lab score.
Do not cloak
Serving different content to bots than to people is cloaking and violates Google's policies. The goal is the same content, delivered faster and without a JavaScript dependency, not a special bot-only page.
Cache rules that help crawlers
- Cache HTML at the edge with a short TTL and purge on publish.
- Bypass the cache for signed-in users only, not for every request.
- Keep robots.txt and sitemaps cacheable.
- Serve compressed HTML rather than streaming it unbuffered.
- Avoid cache-busting query strings on internal links.
Images and third parties
Images rarely cause a timeout by themselves, but a page that waits on a tag manager, a chat widget and three analytics scripts can. Load non-essential scripts after the content, self-host critical assets, and keep the initial HTML independent of third-party availability.
When the bottleneck is bot protection
A WAF that challenges requests without a browser fingerprint will stop crawlers before they read a word. Check the response code for a known crawler user agent from a data center, not from your laptop. If it returns 403 or a JavaScript challenge, fix the rule rather than the page.
A simple test plan
- Fetch the page with curl and time the first byte.
- Confirm the main text is in that first response.
- Repeat from a second region to rule out a local cache.
- Check server logs for the crawler's user agent and status.
- Compare p75 TTFB before and after a caching change.
A fast, server-rendered page with the content in the HTML is the version every crawler can use. That is the speed work that matters for AI visibility.
If slow responses are the problem, our custom websites service rebuilds pages with a lighter footprint so crawlers and visitors get a fast response.
Key takeaways
- Most AI crawlers do not render JavaScript.
- Measure TTFB and the raw HTML, not just a Lighthouse score.
- Cache and server-render; never serve bots different content.