mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-12 06:06:37 +03:00
external live.js is fetched, so by the time it runs the browser has already queued its reload-scroll animation and history.scrollRestoration ='manual' has no effect. Inject a tiny inline synchronous <script> into the same block live-inject writes, BEFORE the external live.js tag. It sets scrollRestoration='manual' and does window.scrollTo(0, savedY) during HTML parse — before the browser can animate anywhere. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>