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

deferRender #24

Open
pinamiranda opened this issue Sep 23, 2016 · 1 comment
Open

deferRender #24

pinamiranda opened this issue Sep 23, 2016 · 1 comment

Comments

@pinamiranda
Copy link

Hi Derek,
Great project. Congratulations.
Since I have a long csv, I would like to defer the rendering for additional speed of initialization.
I'm not being able to use the "deferRender" feature (https://datatables.net/reference/option/deferRender)

By default, when DataTables loads data from an Ajax or Javascript data source (ajax and data respectively) it will create all HTML elements needed up-front. When working with large data sets, this operation can take a not-insignificant amount of time, particularly in older browsers such as IE6-8. This option allows DataTables to create the nodes (rows and cells in the table body) only when they are needed for a draw.

inside the datatables_options.
I suppose that this is linked to how csv-to-html-table is loading the DataTables.

Would it be easy to use a workaround so that the "deferRender" feature works?

Regards,
jm

@derekeder
Copy link
Owner

This is a cool idea, but one that would require a pretty big rewrite of most of this code. We'd essentially need to load the csv file in via an AJAX call and push each row to datatables.

If you have some time to spend on it, I'd definitely welcome a pull request.

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

2 participants