Scroll restoration happens too early
Answered
Barbary Lion posted this in #help-forum
Barbary LionOP
Hello Im facing some issues in appDir.
Next v14, test url:
https://intercars.com.pl/
If you scroll down to footer and click "informacje", then you click "back" in browser, scroll restoration happens before page render, and thats a big issue.
Now its like:
1. Scroll down to footer
2. Click "informacje"
3. Click "back"
4. Scroll restoration scrolls you to footer
5. Previous page is being rendered
It should be in another order, 5 should be before 4.
What we can see, it takes some small delay for previous page to be loaded from cache.
Any ideas?
Next v14, test url:
https://intercars.com.pl/
If you scroll down to footer and click "informacje", then you click "back" in browser, scroll restoration happens before page render, and thats a big issue.
Now its like:
1. Scroll down to footer
2. Click "informacje"
3. Click "back"
4. Scroll restoration scrolls you to footer
5. Previous page is being rendered
It should be in another order, 5 should be before 4.
What we can see, it takes some small delay for previous page to be loaded from cache.
Any ideas?
Answered by Barbary Lion
For everyone having this issue, updating next to v14.1 resolved my problem.
1 Reply
Barbary LionOP
For everyone having this issue, updating next to v14.1 resolved my problem.
Answer