On document.body.scrollTop vs document.documentElement.scrollTop https://miketaylr.com/posts/2014/11/document-body-scrollTop.html …
Replying to @miketaylr
@miketaylr An approach using feature testing instead of UA sniffing is https://github.com/mathiasbynens/jquery-smooth-scrolling/blob/master/jquery.smoothscroll.js#L4-21 …. (Uses jQuery but you get the idea.)
1:17 PM - 21 Nov 2014
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.