Why the deferRender default value is set as false?
Why the deferRender default value is set as false?
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
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 ifdeferRender
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
@allan thanks for sharing me the comment..