-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to restore the scroll position at page refresh? #214
Comments
I am having the same issue. Does anyone have an idea how to fix it? |
Okay I found the reason for this behavior: Pjax sets scrollRestoration to 'manual': Line 26 in 7940a6e
You can configure this by setting 'scrollRestoration' to false: new Pjax({
scrollRestoration: false,
}); |
@bjoernhasse This solved my problem, thanks! According to the README
What does this mean? |
Fix the problem that scroll position can't restored at page refresh after PJAX enabled. For reference, see MoOx/pjax#214
I'm using Hexo to generate my personal website, and the theme
NexT
I used provide PJAX support. After enable PJAX, the scroll position back to top of the page on every refresh.Is it possible to restore the scroll position at page refresh?
The text was updated successfully, but these errors were encountered: