Use once on scroll event listener, instead of removing event listener.
Fix isScrollable by accepting any parent will overflow-y: scroll
Remove all styling from smoothly-load-more - I don't see any point of it.
the only way I've seen offset used is to set it to "100" which just removes the default value "0", so that it's not stuck at the top. "100" in it self is just a invalid value since it has no unit.
once
on scroll event listener, instead of removing event listener.isScrollable
by accepting any parent willoverflow-y: scroll
smoothly-load-more
- I don't see any point of it.offset
used is to set it to"100"
which just removes the default value"0"
, so that it's not stuck at the top."100"
in it self is just a invalid value since it has no unit.