---
package: "@webjsdev/core"
version: 0.4.1
date: 2026-05-17T12:55:47+05:30
commit_count: 2
---
## Fixes

- **preserve cached snapshot on popstate; manual scrollRestoration** [`5a3b684`](https://github.com/webjsdev/webjs/commit/5a3b684)
  Two bugs combined to break back-button scroll restoration:
  
  1. snapshotCurrent(location.href) at performNavigation entry ran on
     EVERY navigation including popstate. But on popstate, the browser
- **scroll to top on cache-miss popstate** [`42142c2`](https://github.com/webjsdev/webjs/commit/42142c2)
  Companion to the previous commit. Setting history.scrollRestoration
  = 'manual' takes the browser out of the scroll-restoration game on
  back/forward — which is great when we have a cached snapshot (we
  restore exactly where the user left off) but leaves the cache-miss
