Pre-built CSS files sizes

1 Answer 106 Views
General Discussions
Laurent
Top achievements
Rank 2
Iron
Iron
Laurent asked on 23 May 2023, 04:57 PM

Hi team,

I'm having a look at last kendo release and I notice that size of css pre-builts files are really really bigger than before (currently I'm using 2022 R2). Even if sass compile only the stylesheet of the button widget, I get a 553KB css file! Was 293KB in R2 2022.

Also, there are many css classes doubled by a counterpart beginning with .!k- like with:

.k-ratio-1 {
  aspect-ratio: 1;
}

.\!k-ratio-1 {
  aspect-ratio: 1 !important;
}

Can someone tell me what are all these css classes beginning with .!\k- ? And also why the stylesheet got so big?

 

Best regards,

Laurent.

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 26 May 2023, 02:33 PM

Hi, Laurent,

The duplicated classes are part of the themes utility package that we use in all components. The `!` sign in front of the class names means that we use the "!important" rule in it, so this selectors are used when we need very precised specificity.

As for the size of the css file, I have contacted the kendo team about this behavior and they will research it further. You can track the following issue for any update on this matter:

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
General Discussions
Asked by
Laurent
Top achievements
Rank 2
Iron
Iron
Answers by
Vessy
Telerik team
Share this question
or