---
title: "The fetch()ening"
description: "htmx 4.0 rebuilds the library's internals on fetch() instead of XMLHttpRequest, drawing on lessons from fixi.js, and makes three simplifying breaking changes: attribute inheritance becomes explicit via an :inherited modifier, history no longer snapshots the DOM locally but re-fetches content, and the event model is linearized with a new htmx:<phase>:<system> naming scheme."
url: "https://swe.quest/articles/the-fetch-ening-bd2a39a6794c1052"
canonical: "https://htmx.org/essays/the-fetchening/"
source: "htmx essays"
published: "2025-11-01"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 9
tags: ["frontend","javascript","browsers"]
---

# The fetch()ening

A post on [htmx essays](https://swe.quest/sources/htmx.md), published 2025-11-01, 9 min read, Announcement. Original: [https://htmx.org/essays/the-fetchening/](https://htmx.org/essays/the-fetchening/)

## Summary

htmx 4.0 rebuilds the library's internals on fetch() instead of XMLHttpRequest, drawing on lessons from fixi.js, and makes three simplifying breaking changes: attribute inheritance becomes explicit via an :inherited modifier, history no longer snapshots the DOM locally but re-fetches content, and the event model is linearized with a new htmx:\<phase\>:\<system\> naming scheme. The async runtime makes room for streaming responses and SSE in core, idiomorph-based morph swaps, a new \<htmx-partial\> template element for elaborate out-of-band swaps, queued view transitions, a unified hx-on:\<event\> syntax, and deeper extension hooks including replaceable fetch(). htmx 2.0 will be supported indefinitely; 4.0 is in alpha now, targeting release in 2026 and becoming latest around early 2027.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)

## Prerequisites

- htmx attributes
- JavaScript fetch API ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- DOM events

## Keywords

htmx, fetch(), XMLHttpRequest, fixi.js, idiomorph, Server-Sent Events, View Transitions

## Related posts

- [Fresh 1.5: Partials, client side navigation and more](https://swe.quest/articles/fresh-1-5-partials-client-side-navigation-and-more-9cde9f664f462089.md): Deno · 2023-10-10 · Medium · 7 min read · Frontend, JavaScript, TypeScript
  Fresh 1.5 introduces Partials, a client-side navigation model where marked regions of a page are swapped with server-rendered HTML without a full reload, preserving island state.
- [Fresh 2.3: Zero JS by default, View Transitions, and Temporal support](https://swe.quest/articles/fresh-2-3-zero-js-by-default-view-transitions-and-temporal-support-78d123ca76300941.md): Deno · 2026-04-24 · Medium · 7 min read · Frontend, JavaScript, Web performance, Browsers
  Fresh 2.3 now skips the client-entry bootstrap script entirely on pages that use no islands or partials, cutting static pages from roughly 5–9 KB gzipped JavaScript to zero with no configuration.
- [May in Servo: user scripts, mp4 compat, blackboxing in DevTools, and more!](https://swe.quest/articles/may-in-servo-user-scripts-mp4-compat-blackboxing-in-devtools-and-more-76e3fa73a9915f24.md): Servo · 2026-06-30 · Medium · 9 min read · Browsers, Rust, Performance engineering, Open source
  Servo 0.3.0 bundles May's 391 commits: new font-variant properties, mp4 playback without fast start, multipart and text/plain form encodings, new DOM APIs, a SpiderMonkey 140.10.1 update fixing memory safety CVEs, and breaking embedding API changes to cookies, thread-pool preferences and DiagnosticsLogging.
- [September in Servo: \<progress\>, rounded rectangles, and more!](https://swe.quest/articles/september-in-servo-progress-rounded-rectangles-and-more-366001ae43187fe1.md): Servo · 2026-11-05 · Easy · 8 min read · Browsers, Rust, Performance engineering, Memory management
  Servo 0.7.0 bundles 527 commits from September, adding web platform features such as the \<progress\> element, :checked, user-select, CSS typed arithmetic, alpha(), font-width, Canvas roundRect() and an MLKEM768-X25519 WebCrypto algorithm, plus many new DOM APIs.
- [Micro Frontends: Deep Dive into Rendering Engine (Part 2)](https://swe.quest/articles/micro-frontends-deep-dive-into-rendering-engine-part-2-9a2ff0104826dc54.md): Zalando Engineering · 2021-09-08 · Medium · 12 min read · Frontend, React, System design, GraphQL, TypeScript
  Zalando's Interface Framework replaces Mosaic HTML fragments with Renderers: declarative TypeScript modules that state their data needs as GraphQL queries and render a single Entity type as a React component.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
