I'm wondering if animating the scrollbars with Javascript triggers browser reflow.
Any difference across different browser implementations?
window.pageXOffset & window.pageYOffset
document.documentElement.scrollLeft & document.documentElement.scrollTop
document.body.scrollLeft & document.body.scrollTop
Thanks!
I dug in deeper and found this link which says it does cause reflow: http://www.phpied.com/rendering-repaint-reflowrelayout-restyle/
I also tested it and modifying scrollTop and scrollLeft both trigger reflow (in Firefox at least).
Heh sorry for answering my own question, but hopefully this info is useful for someone :).
According to this question, no.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With