Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Does Kentico able deliver compressed output and combine multiple js and css files? View modes: 
User avatar
Member
Member
renatas.daunys-gmail - 5/4/2011 7:01:37 AM
   
Does Kentico able deliver compressed output and combine multiple js and css files?
Does Kentico is able to combine multiple js files, cache and deliver compressed output for faster page load?

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 5/5/2011 9:47:22 AM
   
RE:Does Kentico able deliver compressed output and combine multiple js and css files?
Hello,

Definitely, you can append multiple Javascript files to the masterpage.

As for the cache, there are multiple cache options witch will hopefully meets your needs. Please take a look at them here: Caching options

Regarding the output compression, I believe you mean the Gzip compression, right? If so, Kentico CMS as a standard ASP.NET application can work with it since it is rather the IIS server thing. You can enable this compression directly on the IIS or you can use the following key in your web.config file:

CMSAllowGZip

Best regards

Ondrej Vasil

User avatar
Member
Member
stephen.thair-seriticonsulting - 5/21/2012 4:18:30 AM
   
RE:Does Kentico able deliver compressed output and combine multiple js and css files?
Hi Ondrej,

I think what the original poster was referring to was can Kentico combine different CSS (or js) files together in order to improve the page ySlow/Pagespeed score.

www.mysite.com/css/cssfile1.css
www.mysite.com/css/cssfile2.css
www.mysite.com/css/cssfile3.css

become

www.mysite.com/css/Combined123.css

Similarly for .js files.

This is similar to what tools like mod_pagespeed or www.aptimize.com can do.

But the basic "combine files" functionality is what we need - is it a feature?

cheers,
Steve

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 5/21/2012 5:05:15 AM
   
RE:Does Kentico able deliver compressed output and combine multiple js and css files?
Hi Steve,


Kentico can minify the code but not combine the files together. I have suggested it as a new feature to future versions.

However, Kentico is the standard ASP.NET application so you can use the combined files as with any other ASP.NET application. You can remove the resource references from your master page, set up (none) as a site stylesheet in Site manager -> Sites -> edit and then link to the combined file on your master page.


Best regards,
Helena Grulichova

User avatar
Certified Developer 10
Certified Developer 10
rsumibcay-reddoor - 1/10/2014 12:54:27 PM
   
RE:Does Kentico able deliver compressed output and combine multiple js and css files?
Hello,

Is it possible to use ASP.NET bundle framework within Kentico? If so, is this something we can leverage from within Kentico MVC pages?

http://www.asp.net/mvc/tutorials/mvc-4/bundling-and-minification

Thanks!

-Ronel

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/10/2014 5:57:37 PM
   
RE:Does Kentico able deliver compressed output and combine multiple js and css files?
Are you using Kentico v5.x or something newer? Also what version of the .NET framework is your Kentico site on? Looks like it might be dependent on a newer version of the framework and may not be compatible with Kentico v5.x