Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
o11c
36 days ago
|
parent
|
context
|
favorite
| on:
URLs are state containers
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
36 days ago
[–]
isn't there a way to instruct the browser to restore the position only after certain async thing?
kuekacang
35 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
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: