Periksa apakah pengguna telah menggulir ke bagian bawah halaman

const scrolledToBottom = () => document.documentElement.clientHeight + window.scrollY >= document.documentElement.scrollHeight
thefazeelahmed