Hasty Briefsbeta

Bilingual

API proposed by Chrome: Declarative partial updates

6 hours ago
  • #Web Development
  • #HTML Streaming
  • #Chrome APIs
  • Modern web apps have evolved beyond static documents, but HTML's in-order delivery hinders performance and user experience.
  • Chrome introduces Declarative Partial Updates, including out-of-order streaming APIs using <template> and processing instructions like <?marker>, <?start>, and <?end>.
  • These APIs allow content to be streamed and updated dynamically, supporting island architecture and optimized page load order.
  • New JavaScript APIs (e.g., setHTML, streamHTMLUnsafe) provide consistent methods for static and streaming HTML insertion, with sanitizer and script execution options.
  • Use cases include dynamic streaming in SPAs, inserting common content like footers, and combining APIs for efficient partial updates.
  • Polyfills are available for early adoption, and standards are being updated with positive feedback from other browser vendors.