-
Notifications
You must be signed in to change notification settings - Fork 537
Prevent scrolling to top before page has rendered #2439
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
Conversation
|
Hi @pascalbaljet 👋 Thanks for your work on the issue (and your work on Inertia in general). We're affected heavily by this, and it seems there's a question of whether this PR's changes are desirable. Short of forking/patching Inertia, is it possible for developers to implement some flavor of this fix in their own apps? Or is it a core problem that requires changes in Inertia itself? |
Yes, I definitely want to merge it, but I haven't found a reliable way to reproduce/test it yet with Playwright.
I'm afraid this should really be fixed in Inertia itself. I'll try to work on this next week! |
|
Any update here? I have sites that are heavily affected by this. |
|
Still indeed affected by this. Would love to have a fix available in some form, even if it's a configurable option. |
|
Closed in favor of #2721. |
Fixes #2125. It's hard to reproduce because it's only noticeable on very heavy pages, and even then it doesn’t always consistently fail.
I've tried with
requestAnimationFrame()andsetTimeout(cb, 0), but that's not enough.Still draft because it misses tests, and I'm not sure if the new behavior is desired.