Why the deferRender default value is set as false?

Why the deferRender default value is set as false?

nayanakr05nayanakr05 Posts: 2Questions: 1Answers: 0

Hi,

Here I saw that 'Deferred rendering can be particularly useful when Ajax loading data as it allows DataTables to perform a number of performance enhancing optimisations and when deferred rendering is enabled, this can give a significant performance increase, since a lot less work is done at initialisation time.' Ultimately we all require best performance but it is noted that the default value is 'false' for deferRender option, Is there any significant issue or problem if it set as true? Or is there any other situations where this required?

Please comment. Thanks.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,457Questions: 1Answers: 10,465 Site admin
    Answer ✓

    It isn't enabled by default mainly for legacy reasons. It was introduced around 1.6/1.7 (I can't remember exactly). The key downside is that if you expect all nodes to be available in the API (e.g. rows().nodes()) they won't be if deferRender is enabled.

    Since that was the case with the older versions, I decided not to break backwards compatibility.

    There is a very good case for enabling it by default v2.0!

    Allan

  • nayanakr05nayanakr05 Posts: 2Questions: 1Answers: 0

    @allan thanks for sharing me the comment.. :)

This discussion has been closed.