Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • It is data from an API request. It is an option to not reload the page but not the first choice. Commented Aug 4, 2017 at 7:26
  • You could write a script that checks if the element is in the correct position and scrolls into the correct position if not. You (normally) don't know when the page is done rendering, so the script has to check multiple times (perhaps a recursive function that's being called every s second). You also have to stop that script at some point because as soon as the user starts to scroll, we don't want a script scrolling back. If you have images on the page, it is possible to check if they are finished loading: stackoverflow.com/questions/20613984/… Commented Aug 4, 2017 at 9:20