Developer Forum »
RequestReduce: Minimizing/Combining css, js & sprites in Webnodes
20 posts

Picture

I usually use Combres for minimizing/combining CSS & JS - and I thought I'd add it to my Webnodes solution to speed things up (and to enable me to group my css/js into several files).

I installed it using Nuget - but I could not get IIS to process tha combres.axd file correctly. So i decided to try the new kid on the block - RequestReduce.

This was also installed using Nuget - and after refreshing my browser twice it was up and running. No config needed at all! It took care of all my js/css files, and even created 1 sprite (image) file for all the images i had defined in my css. It also combined external js files (hosted on CDN's).

The only issue that I've come across so far is that compression of the css/js in /edit does not work well (TinyMCE). I resolved this by adding 

RequestReduce.Api.Registry.AddFilter(new RequestReduce.Api.JavascriptFilter(x => x.FilteredUrl.ToLower().Contains("/waf")));

RequestReduce.Api.Registry.AddFilter(new RequestReduce.Api.CssFilter(x => x.FilteredUrl.ToLower().Contains("/waf")));

to global.asax - which makes RR ignore this part of the web solution.

181 posts

Cool!

I haven't heard about Request Reduce before.. I'll try it out..

1