Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load list of changes step by step #110

Open
smarr opened this issue Aug 1, 2022 · 0 comments
Open

Load list of changes step by step #110

smarr opened this issue Aug 1, 2022 · 0 comments

Comments

@smarr
Copy link
Owner

smarr commented Aug 1, 2022

We should make the change list an "infinite scroll" kind of element.

See for instance here: https://hashnode.com/post/a-super-simple-infinite-scroll-implementation-in-javascriptjquery-ck4i120t900jwmqs15cuo2zbm

//Infinite Scroll
$(window).on("scroll", function() {
 //page height
 var scrollHeight = $(document).height();
 //scroll position
 var scrollPos = $(window).height() + $(window).scrollTop();
 // fire if the scroll position is 300 pixels above the bottom of the page
 if(((scrollHeight - 300) >= scrollPos) / scrollHeight == 0){
   $('.load-more-days-button').click();
  }
});

For this, we'd need paging support in the rebenchdb/dash/8/changes endpoint.
At this point, the most active projects already result in many hundreds of changes, which is >90kb each for at least 3 of the projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant