Collapse 6 Fetches Into 1 — Live Demo

Performance

Setup

This page compares two approaches against the deployed Worker:

  • Six sequential REST calls
  • One HTTP batch using Cap’n Web
Worker base URL
https://capnweb-demo.storbeck-capnweb-demo.workers.dev

The Worker returns CORS + Timing-Allow-Origin headers so this page can measure timings.

Comparison

6 REST fetches (sequential) 1 HTTP batch (Cap’n Web)


              


              

Notes

  • This page imports Cap’n Web at runtime via ESM (https://esm.sh/capnweb) to avoid bundling.
  • Only requests to your Worker are counted in request totals.
  • For accurate numbers, ensure your Worker sets Access-Control-Allow-Origin: * and Timing-Allow-Origin: *.