ScribeToAny cuts Cloudflare cold-start times from 3.5s to achieve 95+ Lighthouse score

ScribeToAny, a full-stack audio and video transcription platform built on React 19 and Cloudflare Workers, was suffering 3.5-second cold-start delays affecting over 57% of user visits. Engineers traced the bottleneck to an 11MB Worker bundle that forced V8 to load and compile a large JavaScript payload on every cold isolate, compounded by low traffic density causing frequent isolate evictions. The team implemented a four-layer fix that included edge-level HTML caching for anonymous public pages using the Workers Cache API, with strict safeguards to bypass caching for logged-in users and dynamic routes. Additional improvements targeted mobile performance by decoupling client bundles and reducing Total Blocking Time caused by third-party authentication scripts and oversized vendor chunks. The combined optimizations pushed the platform's Lighthouse performance score above 95 and dramatically reduced real-world time-to-first-byte for new visitors.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in