Correct result type
Handle scrolling slightly differently
Corrected return type
Scroll to bottom onload
More scrolling changes
Use newer APIs whenever possible
Unused variable
Remove unnecessary assert

I do not remember why these exist here, but going to remove to fix an
issue
This is unnecessary
Change scrolling behavior
More scrolling behavior changes
Revert "More scrolling behavior changes"

This reverts commit 306c83346a8d1e7f1ddf45eaaf39491410257ad0.
I will get this scrolling logic down one of these days…
New JavaScript logic
Check value after defining document.hidden
Fixed live resize being broken