Avoid checking the document & window width and height on every scroll
Merge pull request #1 from RodrigoEspinosa/master

Avoid checking the document & window width and height on every scroll.
--------------
Thanks, that was still a relic from when i didn't check window resizing.