AboutBlogContact
Frontend EngineeringNovember 5, 2022 2 min read 197Updated: May 18, 2026

Qwik: Resumability vs. Hydration (2022)

AunimedaAunimeda
📋 Table of Contents

Qwik: Resumability vs. Hydration

In 2022, we're all fighting the same enemy: Hydration. Whether it's React, Vue, or Svelte, every framework follows the same pattern:

  1. Server renders HTML.
  2. Browser downloads JS.
  3. Browser executes JS to "hydrate" the HTML (rebuilding the VDOM and attaching event listeners).

This "Hydration Tax" is the reason your site is slow on mobile. Qwik proposes a different way: Resumability.

What is Resumability?

Resumability means the browser can pick up exactly where the server left off without executing any JavaScript on startup.

How it Works: Serialized State

Qwik serializes everything-the component state, the event listeners, and even the framework's internal metadata-directly into the HTML.

<button on:click="./chunk_a.js#handleClick">
  Click Me
</button>

When you click the button, Qwik sees the on:click attribute, fetches the tiny chunk_a.js file, and executes only that specific function. No hydration, no global state reconstruction.

The $ Suffix

In Qwik, you'll see the $ symbol everywhere. This is a signal to the Qwik optimizer to split that code into its own lazy-loadable chunk.

import { component$, useStore } from '@builder.io/qwik';

export const Counter = component$(() => {
  const store = useStore({ count: 0 });

  return (
    <button onClick$={() => store.count++}>
      Count: {store.count}
    </button>
  );
});

Why This Wins in 2022

Qwik is the only framework that can consistently deliver a 100/100 Lighthouse score regardless of how large the application becomes. Because it only downloads and executes the JS needed for the user's current interaction, the initial bundle size is effectively zero.

In 2022, Qwik is challenging the fundamental assumption that we need to "re-run" our app in the browser. It's not about being fast; it's about being instant.


Aunimeda builds modern web frontends - from single-page applications to complex multi-locale sites.

Contact us to discuss your frontend project. See also: Web Development, Corporate Website Development

Read Also

Zero-Runtime CSS-in-JS: The Performance King (2023)aunimeda
Frontend Engineering

Zero-Runtime CSS-in-JS: The Performance King (2023)

Is Styled Components dead? In 2023, zero-runtime CSS-in-JS is taking over. No more runtime script, no more style re-calculation.

Vitest vs. Jest: Why We’re Switching to Vite-Powered Testing (2022)aunimeda
Frontend Engineering

Vitest vs. Jest: Why We’re Switching to Vite-Powered Testing (2022)

Jest has been the king for years, but it's slow. Vitest uses Vite's esbuild pipeline to make testing feel instant again.

WebGL: High-Performance Data Visualization on the Web (2021)aunimeda
Frontend Engineering

WebGL: High-Performance Data Visualization on the Web (2021)

When SVG and Canvas 2D hit their limits, WebGL is the answer. In 2021, we are visualizing millions of data points with the GPU.

Need IT development for your business?

We build websites, mobile apps and AI solutions. Free consultation.

Web Development

Get Consultation All articles