Hi
I wish to use only some of the js script and not the entire kendo.all.min.js
Any tips on how to bundle and minify them? as it seems I fail to do it.
I'm trying to do this using the visual studio bundle and minify extension.
Thanks
4 Answers, 1 is accepted
0

Shahar
Top achievements
Rank 1
answered on 18 Oct 2018, 12:12 PM
Managed to do it
It was the order of the JS files that broke it
0

David
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 18 Oct 2018, 03:36 PM
I too am mystified by bundling and mimification. It seems like like voodoo or some other mystical ancient art not to be made available to lesser deities or mere mortals. I have yet to see a definitive "do x, y, and z". I see lots of "use this magical do all" code whereas what I want to know is why should I or why should I not include something.
0
Accepted
Hi David,
Basically, the Kendo library offers two utilities that would automatically create a custom JavaScript bundle, based on the widgets and framework features used in your specific application:
- The Custom download builder tool, where you could bundle and download the required script; and
- The Gulp script, that would allow you to locally build your own script module;
If you, instead, would like to reference in your project directly the source scripts, you should consult the Script files lists available in our Documentation. The order in which the individual scripts are listed in the documentation is the order in which they have to be loaded in the project. Keep in mind that you should load each script only once. For example, if you load two different widgets requiring the kendo.core.js you should reference it only once, when you include the scripts for the first widget.
Regards,
Veselin Tsvetanov
Progress Telerik
Basically, the Kendo library offers two utilities that would automatically create a custom JavaScript bundle, based on the widgets and framework features used in your specific application:
- The Custom download builder tool, where you could bundle and download the required script; and
- The Gulp script, that would allow you to locally build your own script module;
If you, instead, would like to reference in your project directly the source scripts, you should consult the Script files lists available in our Documentation. The order in which the individual scripts are listed in the documentation is the order in which they have to be loaded in the project. Keep in mind that you should load each script only once. For example, if you load two different widgets requiring the kendo.core.js you should reference it only once, when you include the scripts for the first widget.
Regards,
Veselin Tsvetanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0

Shahar
Top achievements
Rank 1
answered on 22 Oct 2018, 08:14 AM
I'll ask for the company's license and use the tool
Thanks :)