Figured it out. I have a 1920x1080 monitor & when I scroll to the bottom, $(document).height()-$(window).scrollTop() is >800 so it never triggers.
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.
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.
Message
Cancel
Creating...
Broadcasting...
I've added your suggestion. Will update the chrome and firefox webstores soon.
https://bch.gg/86
Message
Cancel
Creating...
Broadcasting...
Awesome! Glad I could help, thanks for the tips too, though improving the community is its own reward.
Message
Cancel
Creating...
Broadcasting...
Nice! That's cleaner than checking an arbitrary 800px lol.
Message
Cancel
Creating...
Broadcasting...
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.
Message
Cancel
Creating...
Broadcasting...