How to make a preloader for DataTables?

How to make a preloader for DataTables?

stereomaniacstereomaniac Posts: 3Questions: 3Answers: 0

I have a table with 20 thousand rows and 50 columns, for easy viewing of which I use DataTables.

When I load a page with such a table, the browser "thinks" for about 20 seconds before DataTables starts working normally. It is not clear to everyone what is happening all these 20 seconds, I would like to have some kind of preloader that will spin all the time the table is loading, and only when the download is finished will it disappear.

Is there any out-of-the-box solution for DataTables to implement a preloader?

I also use PdfMake extension to download this table to PDF and I would like to have a preloader in this case as well - when this PDF is generated

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    You can use processing for that. Another option would be to improve the speed - this section of the FAQ should help, it discusses various techniques to improve performance,

    Cheers,

    Colin

Sign In or Register to comment.