Create account

modulus
replied 2418d
Ahh I knew hardcoding that would be problematic somehow. Most of the known ways to detect the bottom of the page doesn't seem to work for me.
replied 2418d
I think this is a better test:

($(window).scrollTop() + document.body.clientHeight) > $('.footer').position().top

It checks if top of the footer is above the bottom of the viewport.
modulus
replied 2418d
I've added your suggestion. Will update the chrome and firefox webstores soon.

https://bch.gg/86
replied 2417d
Awesome! Glad I could help, thanks for the tips too, though improving the community is its own reward.
modulus
replied 2418d
Nice! That's cleaner than checking an arbitrary 800px lol.
replied 2418d
I had to use document.body.clientHeight to get viewport height cuz memo is not including a <!DOCTYPE html> at the top of the page, which prevents usual $(window).height() from working.