Hosting service, I use it, can works only in medium trust mode and I can't to set some parameters like compressing. Up to day I use in Telerik MVC applications code looks like this:
@(Html.Telerik().ScriptRegistrar()
.Globalization(true)
.DefaultGroup(group => group
.Add("~/Scripts/modernizr-1.7.min.js")
.Add("~/Scripts/jquery-1.7.1.min.js")
.Add("~/Scripts/jquery.min.js")
.Combined(true)
.Compress(true)
.CacheDurationInDays(14)
)
and
@(Html.Telerik()
.StyleSheetRegistrar()
.DefaultGroup(group => group
.Add("telerik.common.css")
.Add("telerik.windows7.css")
.Add("Site.css")
.Combined(true)
.Compress(true)
.CacheDurationInDays(14)
)
)
Everythink works fine and typical page speed measured by google pagespeed tools was not less than 85 points with/without CDN.
Now, I would like to use similar code in Kendo UI MVC based programs. How to do it? Testing code used Telerik Kendo UI MVC without compressing gives me not satisfied result equal 54 points :(
Krzysztof
@(Html.Telerik().ScriptRegistrar()
.Globalization(true)
.DefaultGroup(group => group
.Add("~/Scripts/modernizr-1.7.min.js")
.Add("~/Scripts/jquery-1.7.1.min.js")
.Add("~/Scripts/jquery.min.js")
.Combined(true)
.Compress(true)
.CacheDurationInDays(14)
)
and
@(Html.Telerik()
.StyleSheetRegistrar()
.DefaultGroup(group => group
.Add("telerik.common.css")
.Add("telerik.windows7.css")
.Add("Site.css")
.Combined(true)
.Compress(true)
.CacheDurationInDays(14)
)
)
Everythink works fine and typical page speed measured by google pagespeed tools was not less than 85 points with/without CDN.
Now, I would like to use similar code in Kendo UI MVC based programs. How to do it? Testing code used Telerik Kendo UI MVC without compressing gives me not satisfied result equal 54 points :(
Krzysztof