I have JavaScript functions on my page that insert and remove DOM
elements, and it's causing the browser to rescroll to the top of the
window. I was wondering what the cause of the behavior is and if
there is a smooth workaround.
The rescroll is happening after the insertion function, and using a
setTimeout is just making the page shake.
elements, and it's causing the browser to rescroll to the top of the
window. I was wondering what the cause of the behavior is and if
there is a smooth workaround.
The rescroll is happening after the insertion function, and using a
setTimeout is just making the page shake.
Comment