Is it possible to get information about all tasks on the critical path if dynamic subloading is used?

Hi! I need to load 1000+ tasks and get information about all tasks on critical path in the project to display them on a widget. The loading speed is very slow, I need to use dynamic loading, but then I can’t get the tasks on the critical path. Can you please advise me if there is a solution to my problem? Thank you.

Hello Elena,
It is possible to use the branch loading feature when only the parent tasks are loaded from the server. And to load child tasks, you need to expand the parent task:
https://docs.dhtmlx.com/gantt/desktop__dynamic_loading.html

Here is a sample:
https://docs.dhtmlx.com/gantt/samples/02_extensions/06_dynamic_loading.html

But if the tasks are not loaded, there is no way to get information about them. You still need to load some information from the server.
It is possible to save the critical path information in a task property, then use it to return a class name to highlight the task:


But you need to implement a custom solution to store and update that information.
Here is a snippet that that shows how it can be implemented:
https://snippet.dhtmlx.com/1inb3kbn

However, 1000+ tasks is not a big dataset. I think it is not expected to have performance issues even on old computers. According to the performance testing, 1000+ tasks should be OK to use even if you enable a lot of Gantt features:

You can share a snippet or a ready demo so that I can reproduce the performance issue locally. Then, I will be able to see what might be wrong.