how can the draw be deferred?
how can the draw be deferred?
My datatables tables are typically large - at least one or two dozen columns, a hundred or more rows. Up to now I created a regular HTML table from dynamic data coming from a database. Now I use datatables. Unfortunately, with many data, the regular table is displayed first, the 'wait' mouse cursor turns into a regular mouse cursor, and to a user, it looks as if the page is ready, all this while datatables is still working. Then after a few seconds, the datatables layout replaces the regular table. This is annoying. Can I do something to prevent this from happening? should I use the data option and fill javascript arrays with data?
This question has an accepted answers - jump to answer
Answers
Yes... you should load your data into javascript or json and supply it to the datatables perhaps with ajax...
https://www.datatables.net/examples/data_sources/ajax.html