HTML is the new JSON: Declarative partial updates explained #GoogleIO

Chrome for Developers · Beginner ·🌐 Frontend Engineering ·3mo ago

Key Takeaways

Declarative Partial Updates and the new Streaming API for dynamic markup in HTML, allowing for partial updates without JavaScript and improved web experiences

Full Transcript

But I do want to show you something that I think is just going to change the way that we build some UIs in the future that are both performance and also UI wins. And I think it's one of the biggest changes to HTML in a decade. So, if you go back to my bedroom and look at the clock on my machine, you can see it updating every single second, kind of what you'd expect from a clock. But the thing is like there's no JavaScript on this page. Like it's updating every single second, and [music] that's because of the declarative partial updates that implementation that is coming into Chrome. The clock demo isn't all that useful by itself, but I do think it highlights some compelling potential use cases. So, for example, if you have a huge amount of application structure, say a massive menu, you can render it at the end of your page, let the critical content get rendered first, then you can patch it back into the DOM just a little bit later. It's available in Chrome 148. Now, I want to show you one other thing where I think, you know, I would like to make HTML the new JSON, and we have a new API that's going to help with that. So, if you if you've been using frameworks, you'll probably know about something that's called the island architecture. I think it's a beautiful pattern and it's a beautiful concept, but it's just going to be even easier for us as just like plain JavaScript developers to do something very similar. So, the new streaming API for dynamic markup gives you a revamped way >> [music] >> to improve experiences by letting you inject HTML into documents by the stream HTML >> [music] >> and stream HTML unsafe methods. What this really means is you can take the body from a fetch request and then just stream it directly into the DOM. These APIs have both been available in Chrome since Chrome 148, so pretty recent. They're going to change the way I think, personally, they're going to change the way that we build web experiences well.

Original Description

What if you could render your site as your components are available, without JavaScript? With Declarative Partial Updates, you can now render HTML updates out of order from how they are originally rendered. This allows you to load heavy application logic at the end of your document and patch it in later, creating massive performance and UI wins. Subscribe to Chrome for Developers → https://goo.gle/ChromeDevs #ChromeForDevelopers #Chrome #GoogleIO #JavaScript Event: Google I/O 2026 Speaker: Paul Kinlan Products Mentioned: Chrome
Sign in to unlock AI tutor explanation · ⚡30

Declarative Partial Updates and the new Streaming API for dynamic markup allow for partial updates without JavaScript, improving web experiences. Learn how to use these features to build fast and efficient web pages.

Key Takeaways
  1. Use Declarative Partial Updates to render HTML updates out of order
  2. Use the Streaming API to inject HTML into documents
  3. Stream HTML from a fetch request directly into the DOM
  4. Optimize web page loading using Declarative Partial Updates and Streaming API
💡 Declarative Partial Updates and the Streaming API can improve web page performance and user experience by allowing for partial updates without JavaScript

Related Reads

📰
Frontend Engineers Are Quietly Becoming the New Overhead.
Frontend engineers are being bypassed in the development process, with features being shipped without their involvement, highlighting a potential shift in their role
Medium · AI
📰
Building an Interactive Fashion Hero with HTML, CSS & GSAP
Learn to build an interactive fashion hero using HTML, CSS, and GSAP, and discover how to create immersive digital experiences
Dev.to AI
📰
Out-of-Order HTML Streaming Moves from JS Frameworks into the Browser
Out-of-order HTML streaming is moving from JS frameworks to browsers, enabling faster page loading and interaction
InfoQ AI/ML
📰
From One Dev to a Team of Eight: The Frontend Architecture Decisions That Didn’t Age Well
Learn from a developer's experience on how frontend architecture decisions can impact scalability as a team grows
Medium · JavaScript
Up next
Sports on the Go: Africa makes history at 2026 FIFA World Cup
CGTN Africa
Watch →