Declarative Partial Updates: The Future of HTML Streaming

Discover Chrome's experimental DPU API: replace HTML without JavaScript and improve performance with out-of-order streaming.

miércoles, 1 de julio de 2026 • 5 min read • Q2BSTUDIO Team

HTML Streaming Without Client-Side JavaScript

In the current web development ecosystem, the battle between server-side and client-side rendering seems never-ending. Frameworks like React, Vue, or Svelte have popularized single-page applications (SPAs), where much of the interface is built using JavaScript in the browser. However, this approach can be unnecessarily complex when the server is already capable of generating complete HTML. In this context, the Chrome team has proposed an experimental API called Declarative Partial Updates (DPU), which promises to change how we conceive HTML streaming. Instead of delegating every partial update to client-side JavaScript, DPU allows the server to declare areas of the document that will be replaced later, using simple HTML markers. The browser, without additional scripts, can insert incoming content in the right place. This opens the door to a hybrid architecture where the server generates HTML fragments on demand and the client only manages pure interactivity. For a development company like Q2BSTUDIO, this evolution represents an opportunity to rethink how modern interfaces are designed, combining the best of both worlds.

The DPU proposal does not aim to eliminate frontend frameworks, but to provide a native browser mechanism that complements their capabilities. With DPU, we can send an initial HTML skeleton and later transmit parts that require more generation time (e.g., personalized recommendations or data from a slow API) without the client needing to run fetch, convert JSON to HTML, and manually inject it. The server simply tags an area with <?start name='recomendaciones'> and <?end>, and later sends a <template for='recomendaciones'> with the final HTML. The browser replaces the loading placeholder with the actual content. This not only reduces the amount of JavaScript on the client but also improves perceived speed and network efficiency. At Q2BSTUDIO, we understand that performance optimization is key in any custom application development project, and technologies like DPU will enable faster experiences without sacrificing interactive richness.

In addition to range replacement, DPU introduces the <?marker> tag, which acts as an insertion point for content that has not yet arrived. This makes it possible, for example, to add items one by one to a list as the server generates them, maintaining a continuous flow. The combination of DPU with the new HTML insertion APIs from JavaScript — such as setHTMLUnsafe() and streamHTMLUnsafe() — further enhances streaming capabilities even in SPA contexts. With these tools, an application can fetch HTML fragments via fetch and dump them directly into a DOM element while they download, without waiting for the full response. This technique is especially valuable in control panels, dashboards, or business intelligence services tools, where real-time updates of aggregated data are critical. Companies working with Power BI or AI agents can benefit from faster delivery of visual reports without overloading the browser with unnecessary rendering logic.

The evolution toward this hybrid model does not mean abandoning the client. Complex interactivity — forms, modals, interactive charts, drag & drop — will remain the responsibility of client-side JavaScript. However, many parts of an interface that are currently built with setState and re-renders could simply be server-generated HTML transmitted via DPU. This is especially relevant in environments where security is paramount, such as applications handling sensitive data. By minimizing the amount of JavaScript code running in the browser, the attack surface is reduced. At Q2BSTUDIO, we integrate cybersecurity practices into every development phase, and an approach that shifts content generation to the server aligns perfectly with data protection policies. Additionally, combining this with AWS and Azure cloud services allows scaling the generation of these HTML fragments on demand, balancing load and cost.

Another fascinating aspect is how DPU can expand the capabilities of SPAs. Traditionally, an SPA fetches data in JSON, transforms it on the client, and updates the DOM. With DPU, an SPA can opt for an alternative path: request a partial HTML fragment from the server and stream it directly into the corresponding container. This is particularly useful in applications with frequent content updates, such as e-commerce platforms or news portals. The server can prepare product cards, article lists, or recommendations as pre-formatted HTML, and the client simply inserts them. This strategy reduces the amount of presentation logic in the frontend, easing maintenance and improving visual consistency. To implement this type of architecture, it is essential to have an expert team in custom applications that can cohesively design both the backend and frontend. At Q2BSTUDIO, we offer comprehensive solutions ranging from API design to the implementation of reactive interfaces, using artificial intelligence and AI for businesses to optimize processes like dynamic content generation.

Experimentation with DPU is already possible via Chrome Canary (starting from version 148) by enabling the experimental flag. There are sample repositories that implement everything from document streaming to a hybrid architecture where client state (like a counter) is maintained while route content is updated with server HTML. These demos tangibly show what a future would look like where the browser understands not only how to display HTML but also where to insert it. At Q2BSTUDIO, we closely follow these innovations because we believe they will shape the direction of web development in the coming years. Our team is already exploring how to integrate these techniques into custom software projects, combining them with AI agents that dynamically select which fragments to serve or with business intelligence services that update dashboards in real time without reloading the page. The flexibility offered by DPU and the new streaming APIs makes it possible to create lighter, more secure applications with a superior user experience.

In conclusion, Declarative Partial Updates represent a paradigm shift that goes beyond a simple API. They are an invitation to rethink the division of responsibilities between client and server, leveraging the browser's native ability to handle HTML declaratively. Although it is an experimental technology, its potential to reduce frontend complexity, improve performance, and strengthen security is immense. From Q2BSTUDIO, we recommend that companies interested in modernizing their applications evaluate how this type of approach can fit into their current architecture. Whether through AWS and Azure cloud services to scale fragment generation, or by integrating Power BI for streaming visualizations, the possibilities are vast. The future of HTML streaming is not just a technical promise: it is an opportunity to build smarter, more efficient, and user-centric applications.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.