triggers scroll event on pageload, and on window resize