LIVE

Qwik 2.0 RC Drops HTML Comments for Faster Rendering and Out-of-Order Streaming

🤖 AI Models 2 min read 👁 6

The Qwik development team has released the version 2.0 release candidate, removing HTML comment markers in favor of script-based state storage to improve rendering performance and introduce experimental out-of-order streaming.

Qwik 2.0 RC Drops HTML Comments for Faster Rendering and Out-of-Order Streaming🤖AI Models

Photo: infoq.com

Key points

  • Qwik 2.0 RC removes HTML comment markers to reduce overhead and improve rendering speed.
  • State and virtual node information are now stored in dedicated script blocks at the end of the document.
  • The update introduces experimental out-of-order HTML streaming and asynchronous computed values.

The core development team behind the open-source Qwik framework has published its 2.0 Release Candidate under the package name @qwik.dev/core@2.0.0-rc.0. Originally developed at Builder.io, the framework relies on resumability to defer loading component JavaScript until a user actually interacts with the page. This latest release candidate arrives nearly three years after initial design discussions began, bringing substantial architectural changes to how server-rendered states are encoded.

In the previous version, Qwik relied heavily on HTML comment markers scattered throughout the document to flag component boundaries and track updates. According to internal benchmarks, this approach created unnecessary memory and CPU overhead while blocking out-of-order streaming. The new release eliminates these comments entirely, consolidating state and virtual node details into structured script blocks at the end of the document. Additionally, the update introduces experimental out-of-order HTML streaming, allowing developers to isolate slow-loading regions so the rest of the page delivers immediately.

Internal runs of the js-framework-benchmark showed notable performance gains, with the version 2 release candidate posting a weighted geometric mean well ahead of the previous version and several competing frameworks. Initial testing also highlighted a sharp reduction in the JavaScript required before interactivity begins, falling significantly from the previous generation. Other additions in this release include asynchronous support for computed values, dedicated JSON endpoints for route loaders, and tools to embed Qwik components directly into React applications.

Upgrading to the release candidate involves minor breaking changes that can be handled automatically using the project's migration tooling. Developers interested in testing the new features can scaffold fresh projects using the updated command line interface or explore the new APIs through online examples and playgrounds.

What to watch next: Monitor community feedback and official adoption rates as developers test the stability of the 2.0 release candidate in production environments ahead of a final stable launch.

Source infoq.com — infoq.com/news/2026/11/quik-2-streaming/?utm_campaign=infoq_content… ↗

Contact the newsroom

Got a tip, a proposal or a partnership question? Write to us and we will reply shortly.