Remix.run Logo
o11c 4 days ago

Even with JS, if it is classical synchronous JS it is much better than the modern blind push for async JS, which causes the browser to try to restore the position before the JS has actually created the content.

nextaccountic 4 days ago | parent [-]

isn't there a way to instruct the browser to restore the position only after certain async thing?

kuekacang 4 days ago | parent [-]

I think the hack is to store html height/width locally and restore it as early as possible so the content will then load under the scrolled view