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

Rendering a large collection using CollectionBinder can tie up the browsing context #224

Open
platinumazure opened this issue Aug 18, 2015 · 0 comments

Comments

@platinumazure
Copy link
Contributor

Rendering a large collection can tie up the browsing context and generate long-running script errors.

It's pretty obvious that consumers with large collections should also consider partitioning/paginating their collections to make for an acceptable user experience. However, for consumers that are okay with rendering things in batches, it would be a good idea for CollectionBinder to support some sort of renderBatchSize option (or similar) and render in chunks of that size, calling setTimeout to return control back to the browser temporarily in between. If that option is not specified, all items would render synchronously. Ideally, this logic would activate both on initial bind calls and every time a collection add occurs with more than renderBatchSize models being added.

I'll work on a pull request along these lines in the next couple of days, but if anyone wants to have a go before I do, feel free.

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