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

Show a limited number of cards in the DOM at any given time for performance reasons. #22

Open
mihaisavezi opened this issue Mar 29, 2017 · 0 comments

Comments

@mihaisavezi
Copy link
Contributor

Split items into chunks.

When there are for example more than 40 slides in the DOM at any given time, remove the ones at the start and if the user goes back to the first pages where they reside, make a request to load them.

slides = ['20 item array'];
max = 30;

when the user navigates to an item in the slides with an id > 20, request an additional 20 items.
and remove the first 10 from the array, to keep the number of dom elements < max.

we only display items 9 to 39

The idea is to not exceed a given max nr. of items in the DOM at any given time.

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

No branches or pull requests

1 participant