All posts
Web Development
3 min read• 11/24/2026

Ditching Hydration: Why Zero-JS Resumability is the Production Standard

Traditional SSR hydration is a design flaw that wastes mobile CPU cycles and destroys core web vitals. Here is why we deploy resumable, edge-rendered web architectures.

Share X LinkedIn

Tip: use ← / → to browse posts.

Ditching Hydration: Why Zero-JS Resumability is the Production Standard
## The Hydration Tax Must Go For the past eight years, standard web development has been saddled with an architectural compromise called **Hydration**. The cycle is always the same: your server runs your React or framework code, renders pure HTML, sends it down the wire for fast initial paint, and then delivers a giant blob of JavaScript. The client browser downloads that JavaScript, parses it, executes it, reconstructs the virtual DOM tree, and attaches event listeners to DOM nodes that were already visible on the screen. This is known as the **Hydration Tax**. On a high-spec MacBook Pro running on fiber internet, the Hydration Tax goes largely unnoticed. On a mid-tier Android phone loading a modern enterprise web application over a congested cellular network, hydration locks the main thread for 1.5 to 3.5 seconds. During this window, the application is in an uncanny valley: it *looks* fully loaded, but buttons fail to respond, navigation clicks are dropped, and interaction metrics (Interaction to Next Paint - INP) crater. At BetterCallHashim, we treat full-app hydration as an anti-pattern. On our high-scale production client builds, we design for **Zero-JS Resumability**. --- ## Resumability: Pick Up Where the Server Paused Resumability fundamentally changes how code moves between server and client. Instead of rerunning the component tree on the client to rebuild internal state and rebind event listeners, a resumable architecture serializes the execution state, framework metadata, and event handles directly into the initial HTML response. When the HTML lands in the browser, the work is already done. The runtime doesn't re-execute component trees or build a virtual DOM. It registers a single global event delegate on the `document` root. ```html <!-- Example: Resumable HTML serialization fragment --> <button class="btn-action" data-on-click="/build/chunk-cart.js#handleAddToCart" data-state='{"productId":"sku_9821","quantity":1}'> Add to Cart </button> ``` When the user clicks the button: 1. The global event delegate intercepts the click event. 2. It reads the `data-on-click` attribute. 3. The browser fetches *only* the micro-chunk containing the specific event handler (`chunk-cart.js`). 4. It deserializes the state payload and executes the handler. Zero component trees were traversed. Zero virtual DOM nodes were compared. Zero initial JavaScript ran when the page painted. The client simply *resumes* execution at the exact point where the server finished rendering. --- ## Architectural Shifts for Resumable Codebases Transitioning an engineering team from traditional SSR hydration to resumable web architectures requires unlearning several common frontend patterns. ### 1. The End of Monolithic Context Providers Traditional SPA code routinely wraps root layouts in nested state providers: ```tsx // The pattern that kills resumability <AuthProvider> <ThemeProvider> <UserPreferencesProvider> <App /> </UserPreferencesProvider> </ThemeProvider> </AuthProvider> ``` In a hydrated architecture, this pattern forces the browser to evaluate the entire provider hierarchy before a single leaf node button becomes interactive. In a resumable architecture, state must be **fine-grained and localized**. We rely on reactive primitives (like Signals) that deserialize lazily at the individual DOM boundary level without waking up parent contexts. If a user clicks a toggle inside the navbar, only that specific signal listener wakes up. ### 2. Micro-Chunking and Edge Bundlers Resumability shifts the bundling strategy from route-based code splitting to **symbol-based code splitting**. Instead of emitting a single bundle for an entire route (e.g., `dashboard.js`), modern resumable build tools split individual interaction handlers into separate atomic files. - The page lands with zero application JS loaded. - If a user never clicks the complex settings modal, the code for that modal is never downloaded, parsed, or executed by the browser. - E-commerce and portal landing pages consistently achieve 100/100 Lighthouse performance scores across real-world mobile traffic. ### 3. Server-Edge Affinity Because resumable applications rely heavily on serializing state into HTML payloads, edge servers need to be geographically close to the user to maintain sub-50ms TTFB (Time to First Byte). We deploy application rendering out to globally distributed serverless runtimes (such as Cloudflare Workers or Fastly Compute). The HTML is rendered, hydrated with serialized metadata, and streamed directly into the client's socket within single-digit milliseconds. --- ## The Commercial Advantage of Raw Speed Performance is not a technical vanity metric; it is an economic driver. Every 100ms shaved off interactive latency correlates directly with decreased bounce rates and increased conversion velocity. Continuing to ship massive JavaScript bundles to recreate identical DOM structures on client devices is bad engineering. Resumable architectures allow engineering teams to write rich, interactive web applications without forcing users to pay the Hydration Tax. Make your web applications instant by design.
webperf
javascript
architecture
resumability
Share X LinkedIn

What clients say

Real reviews from founders and teams we've shipped with.

5.0 · 6 reviews
"Vercel + Neon + Drizzle stack shipped in days. The architecture doc alone was worth it."
Sofia L.
Founder, Draftbase
"A luxurious real-estate experience. Buyers actually enquire — that's the real proof."
Omar H.
Director, Future Dubai Homes
"Midjourney pipelines automated our brand asset production. Consistent style, batch rendering, versioned prompts."
Midjourney Pipeline
AI Image Generation
"Perplexity Search and Labs embedded natively into our research tool — citations, freshness, everything a knowledge product needs."
Perplexity AI
Perplexity Search · Perplexity Labs
"Traffic, retention, monetization — every metric moved after the redesign. Highly recommend."
Alex W.
Founder, RobloxWAP
"Broker directory that ranks and converts. The SEO foundations alone were worth it."
Rohit D.
Founder, Stock Broker of India