This is a migrated thread and some comments may be shown as answers.

Framework is heavy!

8 Answers 244 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sime
Top achievements
Rank 1
Sime asked on 22 Dec 2014, 09:24 AM
Are there any plans to lighten the weight of the framework in the future?

The combined script is 1.9MB!

8 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 22 Dec 2014, 09:50 AM
Hi,

 We offer the following options to use Kendo UI without including a combined file:

1. Custom Download Builder - allows the user to create custom combined file that contains only the required widgets.
2. Use grunt
3. Include the separate files
4. Use RequireJS

We don't have plans to reduce the size of the combined file because this would require removing features.

Regards,
Atanas Korchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Sime
Top achievements
Rank 1
answered on 20 Jan 2015, 10:31 AM
Thanks Atanas,

I'm sure there must still be room to reduce the file size without removing features unless your size vs feature ratio is already (and incredibly) at 100% efficiency!.

I'm just surprised at the size vs functionality e.g. when compared to other frameworks such as BootStrap / Angular etc. which are tiny by comparison. I hoped that maybe you're still at the stage where you're adding / improving functionality with a mind to reduce the size and improve performance later.
0
Atanas Korchev
Telerik team
answered on 20 Jan 2015, 12:05 PM
Hello Simon,

You are right there may be room for improving the size. However the four options that I listed allow better size optimization. For example if you don't use the Scheduler you can avoid including it altogether instead of optimizing its implementation size by 10-20%.

Regards,
Atanas Korchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Andrew
Top achievements
Rank 1
answered on 04 Jan 2016, 08:46 PM

Regarding the grunt task for custom builds, it appears to automatically include all dependencies for each widget. For example, a custom build including only the grid widget ("grunt custom:grid") produces a kendo-custom.js that is almost 40000 lines long and includes OData, XML, Excel, and PDF support, even those were not explicitly requested.

Is it possible to run the script and exclude all non-required dependencies, like the way the online custom download tool works? In other words, I'd like to be able to do "grunt custom:grid,editable" to get a grid with editing support but nothing else.

0
Kiril Nikolov
Telerik team
answered on 06 Jan 2016, 03:56 PM

Hello Andrew,

 

Currently you can cannot build widgets based on certain features using grunt/gulp the same way you can do that using the custom download builder.

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Andrew
Top achievements
Rank 1
answered on 06 Jan 2016, 07:18 PM

Thanks Kiril,

So is there any supported way to create a custom build of the non-minified files? The non-minified version is helpful for development and debugging. AFAIK, the online tool and RequireJS support work only with the minified files.

AHG

0
Andrew
Top achievements
Rank 1
answered on 06 Jan 2016, 07:20 PM
Sorry, I meant a custom build of non-minified files with optional features excluded.
0
Kiril Nikolov
Telerik team
answered on 08 Jan 2016, 08:30 AM

Hello Andrew,

 

I am afraid that currently there is no way to achieve this using the exposed build tools, and the only to build feature specific distribution is using the custom download builder, that works with minified files only. However for development there is no much difference if you have all the features included in the debug scripts.

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Sime
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Sime
Top achievements
Rank 1
Andrew
Top achievements
Rank 1
Kiril Nikolov
Telerik team
Share this question
or