feat: add hover-intent prefetch for Open Deck button (WEB_PREFETCH=1) (#68)

This commit is contained in:
mwisnowski 2026-04-01 20:54:51 -07:00 committed by GitHub
parent 1f01d8b493
commit e8b8fab3f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 138 additions and 5 deletions

View file

@ -8,7 +8,8 @@ This format follows Keep a Changelog principles and aims for Semantic Versioning
- Link PRs/issues inline when helpful, e.g., (#123) or [#123]. Reference-style links at the bottom are encouraged for readability.
## [Unreleased]
_No unreleased changes yet._
### Added
- **Hover-intent prefetch** (`WEB_PREFETCH=1`): Hovering over an "Open" button on the Finished Decks page now prefetches the deck view in the background after a 100 ms delay, eliminating the CSV-parse wait on click. On Chrome 108+, uses the Speculation Rules API for full prerender (`data-prerender-ok="1"`); falls back to `rel=prefetch` on other browsers. Feature-flagged and off by default; respects Data Saver / 2G connections and limits concurrent prefetches to 2.
## [4.5.1] - 2026-04-01
### Added