Skip to main content
Engineering

JavaScript Rendering Cost: Latency & Credits

What JavaScript rendering really costs in a scraper: latency, the slow p90 tail, and why fastCRW charges the same 1 credit for any renderer. Learn how to render JS only when a page needs it.

fastcrw
By RecepNovember 27, 20268 min read

By the fastCRW team · Benchmark figures from diagnose_3way.py on Firecrawl's public dataset (2026-05-08); credit costs verified 2026-05-18 · Verify independently before budgeting.

The real cost of rendering JavaScript in web scraping

The JavaScript rendering web scraping cost splits into two parts. Many scraping APIs charge in credits (billing a headless browser at a higher rate than a plain HTTP fetch). fastCRW does not — every renderer costs 1 credit. What you always pay is latency (a browser has to boot, load the page, run scripts, and settle the DOM before you get any content back). Most scraping APIs blur both costs into a single opaque multiplier. This post separates them, puts concrete numbers on each, and shows how to avoid the latency cost on pages that do not need a browser at all.

Why rendering JavaScript spins up a browser

A static, server-rendered page hands you the final HTML on the first HTTP response — a cheap fetch is enough. A client-rendered single-page app, by contrast, ships a skeleton plus a bundle of JavaScript that builds the visible content in the browser. To read that content you must execute the page: instantiate a DOM, run the framework, wait for network-driven hydration, and only then serialize. That execution is what a headless browser like Chrome does, and it is structurally more expensive than a fetch — in CPU, in memory, and in wall-clock time.

Scoping this post to cost and latency only

This is deliberately a cost-and-latency post, not an accuracy or anti-bot post. We are answering two narrow questions — "does JS rendering add any credits in fastCRW?" (spoiler: no) and "how much slower is it?" — and then "how do I avoid the latency where I do not need it?" For the renderer decision framework and the head-to-head accuracy comparison, see renderer selection: HTTP vs Lightpanda vs Chrome and HTTP rendering vs headless Chrome.

The credit cost of rendering JavaScript

fastCRW prices rendering as a flat tier, not a mystery multiplier. Every renderer — HTTP, Lightpanda, and Chrome — costs exactly one credit.

Every renderer costs 1 credit — no chrome premium

A scrape with the http, lightpanda, or chrome renderer all cost 1 credit. There is no JavaScript-rendering surcharge, no extra credit when a full browser runs. Lightpanda — a lightweight JS engine that handles many dynamic pages without full Chrome — costs 1 credit, and so does Chrome itself.

OperationRendererCredits
scrapehttp or lightpanda1
scrapechrome1
crawlper page (http/lightpanda)1
crawlper page (chrome-rendered)1

No JS rendering multiplier

This is the part that matters for forecasting. Some scraping APIs charge a steep per-request premium the moment JavaScript rendering is switched on. fastCRW charges the same 1 credit for any renderer, with no JS-rendering surcharge, and failed requests are not billed. The render cost is the same regardless of which engine runs.

Crawl cost stays flat per Chrome-rendered page

The same rule scales through crawling. A crawl is billed at 1 credit per page — whether that page is served by a plain HTTP fetch or driven through Chrome. So a 1,000-page crawl where every page is server-rendered HTML costs 1,000 credits; the same crawl where every page forces Chrome also costs 1,000 credits. There is no penalty for needing a browser.

The latency cost of rendering JavaScript

Credits are the easy half. Latency is where rendering JavaScript hurts most, and where most vendors quietly hide the worst case behind a flattering average. We do not.

Median latency stays competitive

On the canonical 3-way scrape benchmark (diagnose_3way.py against Firecrawl's public dataset of 1,000 URLs, 819 of them labeled, 2026-05-08), fastCRW's p50 latency was 1914 ms — lower p50 latency than Firecrawl's 2305 ms and effectively tied with Crawl4AI's 1916 ms. The median request, in other words, is quick: half of all scrapes — including JS-rendered ones — return inside roughly two seconds. If you only ever looked at the median, JavaScript rendering would look nearly free.

p90 in fast mode: the lowest of the three

The median is not the whole story. In fast mode, fastCRW's p90 is 4348 ms — the lowest of the three tools (Crawl4AI 4754 ms, Firecrawl 6937 ms; same 2026-05-08 run). The chrome-stealth path that recovers content the other tools miss is the same mechanism that delivers this tight tail. In recall mode, additional recovery work on the hardest pages extends the tail further — the trade-off between maximum accuracy and predictable latency is yours to make by selecting the mode.

Always publish the full distribution, never a single average

This is why we publish the full distribution and refuse to quote a single "average latency" for scrape. A distribution with a p50 near 1900 ms and a mode-dependent p90 cannot be summarized by one mean without hiding one end or the other. When you budget JS-render latency, size your timeouts against the p90 for your chosen mode. See scraping latency explained for why percentiles, not averages, are the only honest way to talk about a render pipeline.

Avoiding the penalty when the page does not need it

The fastest JavaScript render is the one you never run. Even though all renderers cost the same 1 credit, the latency tail still only applies to pages that actually reach Chrome — so the goal is to keep that set as small as the work allows.

Auto renderer: HTTP first, Chrome only on fallback

By default fastCRW runs the auto renderer, which selects with a chrome → lightpanda → http fallback order so that the most capable viable tier is used per page rather than defaulting every request to a browser. In practice a server-rendered page is served by a fast HTTP fetch. You do not have to classify pages by hand; auto does it, and since all renderers cost the same 1 credit, the auto escalation to Chrome never surprises your bill.

Pinning HTTP for known static pages

When you already know a target is static — documentation, blog archives, API-driven JSON endpoints, server-rendered listing pages — pin the renderer to http explicitly. That guarantees the fast path, and since all renderers are already 1 credit, pinning is purely a latency optimization. fastCRW also accepts Firecrawl's engine field as an alias, so existing Firecrawl-shaped requests that force a renderer keep working after a base-URL swap. Pinning is the single highest-leverage move for latency on a high-volume, mostly-static workload: it converts a "maybe 14 seconds" into a guaranteed "~2 seconds" — without any credit difference.

Budgeting JavaScript rendering at scale

Once you understand the per-page cost, scale is just arithmetic — provided you model the renderer mix honestly.

Modeling mixed HTTP and Chrome traffic

Estimate the fraction of your traffic that truly needs a browser. Since every renderer costs 1 credit, a 100,000-page monthly job costs 100,000 credits regardless of whether 20% or 100% of pages escalate to Chrome — no renderer surcharge to model. The mix still governs latency: most pages return on the fast median path, and only the Chrome fraction risks the p90 tail, so size your worker timeouts and concurrency around that minority. Run the latency model on your own URL mix against the public numbers at /benchmarks before you commit a budget.

Self-hosting to remove the credit cost

If the credit half of the bill dominates, you can delete it. fastCRW's engine is AGPL-3.0 and self-hosts as a single static Rust binary; self-hosted, the cost is $0 per 1,000 scrapes — you pay only for your own server. The latency cost does not disappear — a Chrome render is a Chrome render wherever it runs — but the per-render credit charge does. The opt-in Chrome variant of the default Docker Compose is heavier (≈500 MB image, ≈1 GB resident) than the lightpanda default, which is the resource trade-off you accept for full-fidelity rendering; see low-memory scraping for keeping that footprint lean. Self-hosting turns "how much will JS rendering cost?" from a metered question into a fixed-infrastructure one.

Sources

  • Scrape benchmark of record: diagnose_3way.py on Firecrawl's public scrape-content-dataset-v1 (1,000 URLs / 819 labeled), single run, 2026-05-08 — bench/server-runs/RESULT_3WAY_1000_FULL.md.
  • Renderer selection and tiers: fastCRW open-core README — github.com/fastcrw/crw.
  • Live pricing: /pricing · benchmark numbers: /benchmarks.

Related: Renderer selection: HTTP vs Lightpanda vs Chrome · HTTP rendering vs headless Chrome · Scraping latency explained · Low-memory scraping

FAQ

Frequently asked questions

How much does JavaScript rendering add to scraping cost?
In fastCRW, nothing extra. Every renderer — http, lightpanda, and chrome — costs 1 credit per scrape. For crawling, the same 1 credit per page applies regardless of which renderer runs, and failed requests are not billed. There is no JS-rendering surcharge.
Does rendering JavaScript make scraping slower?
Only on the hardest pages in recall mode. On the canonical 3-way benchmark (diagnose_3way.py, 2026-05-08) fastCRW's median (p50) latency was 1914 ms — lower than Firecrawl's 2305 ms — so the typical request is quick. In fast mode, the p90 is 4348 ms — the lowest of the three tools tested (Crawl4AI 4754 ms, Firecrawl 6937 ms). The chrome-stealth fallback that recovers hard pages delivers both the recall lead and the tight fast-mode tail.
Why does the p90 latency get worse with JavaScript rendering?
In fast mode, fastCRW's p90 is 4348 ms — the lowest of the three tools (Crawl4AI 4754 ms, Firecrawl 6937 ms; diagnose_3way.py, 2026-05-08). The chrome-stealth fallback that recovers hard pages is the same mechanism that delivers this tight tail in fast mode, and also drives the highest truth-recall of the three (63.74% of 819 labeled URLs). In recall mode, additional recovery work on the hardest pages extends the tail. We publish the full distribution rather than a single average precisely because mode choice changes the tail.
How do I avoid paying for JS rendering on static pages?
Since all renderers cost 1 credit, there is no extra credit charge to worry about. To minimize latency, let the default auto renderer handle escalation — it uses a chrome to lightpanda to http fallback, so server-rendered pages are served by a fast HTTP fetch. For pages you know are static, pin the renderer to http explicitly to guarantee the fastest path.
Does fastCRW charge a JS rendering multiplier?
No. Where some scraping APIs apply a steep per-request premium when JavaScript rendering is enabled, fastCRW charges the same 1 credit for any renderer — http, lightpanda, or chrome. There is no JS-rendering surcharge at all, so forecasting a JS-heavy bill is straightforward: every page costs 1 credit.

Get Started

Try fastCRW free

Run a live request in the playground — no signup required. Or grab a free API key with 1000 free credits, no credit card.

Continue exploring

More engineering posts

View category archive