There is this kind of code:
$(window).scroll(function(){ if ($(window).scrollTop() == $(document).height() - $(window).height()) alert('Привет'); }); Works great on the desktop. But for some reason it does not work in the mobile version.
I only have iPhone 5C mobile phones, so the devices for the test are not great, but in the imitation mode of mobile phones in Chrome, the code also does not want to be executed.
Is there a non-kolkhoz and crutches-free version? Do you want to track the end of page by scrolling?