Starting from 200 tasks, there may be delays in rendering the Gantt chart on the page.
There are the following ways to solve this problem:
The extension is deprecated since v6.2, as it is enabled by default. You don't need to include it additionally.
The Smart Rendering technique allows considerably enhancing the speed of data rendering, while working with big amounts of data. In this mode only the tasks and links visible on the screen at the moment are being rendered.
To enable Smart Rendering, you need to include the ext/dhtmlxgantt_smart_rendering.js extension on the page:
<!DOCTYPE html> <html> <head> <script src="codebase/dhtmlxgantt.js"></script> <link href="codebase/dhtmlxgantt.css" rel="stylesheet"> <script src="codebase/ext/dhtmlxgantt_smart_rendering.js"></script> </head> <body> // your code here </body> </html>
Including the extension on the page is enough to activate the mode. If you need to disable the mode, you can set the corresponding configuration parameter to false:
gantt.config.smart_rendering = false;
This functionality is available only in PRO version
If you use a big date range in your project, you may also want to enable the static_background parameter in addition to smart rendering:
Back to top
gantt.config.static_background = true;