Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ them.
History support has always been included in htmx, allowing you to implement back-button aware actions with simple
attributes. In htmx 2, a cache in `localStorage` was used to snapshot pages for restoration. Unfortunately a large
source of issues was that this snapshot could include DOM mutations by 3rd party JavaScript libraries. When the page was
restored, those mutations remained by the underlying JavaScript logic was not.
restored, those mutations remained by the underlying JavaScript logic did not.

htmx 4 does not cache pages in `localStorage`. On back navigation htmx re-fetches the page and swaps it into `<body>`,
or into the `[hx-history-elt]` element if one is present. This allows 3rd party JavaScript libraries to "just work" in
Expand Down