Skip to content

Commit 9595da3

Browse files
x-zheng16claude
andcommitted
force page to start at top on load
Set history.scrollRestoration = 'manual' in <head> to prevent browser from restoring previous scroll position on reload/reopen. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0186637 commit 9595da3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/katex.min.css">
1818
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/katex.min.js"></script>
1919

20+
<script>if ('scrollRestoration' in history) history.scrollRestoration = 'manual';</script>
2021
<script src="https://cdn.tailwindcss.com"></script>
2122
<script>
2223
tailwind.config = {

0 commit comments

Comments
 (0)