fires before the dhtmlxGantt initialization is started
gantt.attachEvent("onBeforeGanttReady", function(){ //any custom logic here });