Discuss anything related to web development but no technical support questions


Post by rdonahue6 »

Hi,

I found that are files with name gnt-all.js and gnt-all-thin.js.
Size of thin is almost half of the gnt-all, may i know what is gnt-all-thin.js is ?
is it optimized version of gnt-all ?
if yes, can i use thin instead of it so that it will help to improve the time of loading it ?

Thanks,
Pravin More

Post by pmiklashevich »

Hello,

Gantt requires some of Scheduler classes. Thin version doesn't have Scheduler classes. It's needed to make Scheduler and Gantt work together in one application. Then you include sch-all and gantt-all-thin.

Best regards,

Pavlo Miklashevych
Sr. Frontend Developer


Post by arcady »

In other words gnt-all-thin.js bundle contains only classes from Gnt.* namespace.

Post by rdonahue6 »

Hi pmiklashevich and arcady,

Thanks for quick reply, however, it won't help us as sum of 'sch-all' and 'gantt-all-thin' files size is as same as gnt-all.js.

is there any way to reduce the size of gnt-all.js further ? or way to load it faster than now ?

Byntum: 5.1.15
Sencha: 6.0.2

Thanks in advance.
Pravin More

Post by mats »

You can do a custom build with Sencha Cmd and strip / exclude files from our core that you don't use. This would bring down the size a bit.

Post by rdonahue6 »

Thanks mats,

i am not sure i can do it, but, will try to do it :).

Post Reply