I checked a lot of endless scroll scripts and was not happy with any of them.

What I want to have is in general this:

```
window.onscroll = function(ev) {
    if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) {
        //same HTML document starts again without reloading
    }
};

```

How is it possible to code this?