When to use deferRender

When to use deferRender

lenamtllenamtl Posts: 265Questions: 65Answers: 1

Hi,

I just want to make sure I understand correctly

We can use deferRender only if data are comming from Ajax request.
https://datatables.net/reference/option/deferRender

This question has accepted answers - jump to:

Answers

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923
    edited October 2020 Answer ✓

    Or if the data is Javascript sourced using data.

    Kevin

  • lenamtllenamtl Posts: 265Questions: 65Answers: 1
    edited October 2020

    Ok thanks

    So if the data is loaded from PHP MySQL request let say on page load, no Ajax, no JS this would not apply for this case, this will not make any difference..

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923
    Answer ✓

    Correct. In this case you are supplying a DOM based table which Datatables will need to process. all rows to build the data cache.

    Kevin

This discussion has been closed.