Posts, comments, notifications, job sections, job entries, all use nearly identical code. About the only difference is post's skipping bogus entries with the .clientHeight === 0 check. Oh, and posts and sections pin to the top where as the smaller items will only scroll into view if necessary.
There will be more callbacks. And some features, like first/last are context sensitive so that bit might come out to wrapper functions rather than the jump to functions.
Posts, comments, notifications, job sections, job entries, all use nearly identical code. About the only difference is post's skipping bogus entries with the
.clientHeight === 0
check. Oh, and posts and sections pin to the top where as the smaller items will only scroll into view if necessary.There will be more callbacks. And some features, like first/last are context sensitive so that bit might come out to wrapper functions rather than the jump to functions.