Hello Gianluca, Thanks for this. I've been trying to tackle the same issue as a side project, and have made some head way. I approached the problem from a different angle, however.
One of my requirements is combination, in addition to minification. That's generally where I see the biggest performance improvements. The tricky part is finding an elegant way to modify the resource manager to allow this behavior. I ended up going down the path of creating my own Orchard.Core.Shapes.CoreShapes override and modifying the WriteResources routine to allow for the combination of resources. I don't like overriding CoreShapes, but I haven't figured out a better way to inject my logic where necessary. Please find my prototype code at http://slamm.com/downloads/Slamm.Orchard.WebAssetManager.zip (it's not pretty, but you'll get the idea). I'm using SquishIt as my compressor / combiner ( http://www.codethinked.com/squishit-the-friendly-aspnet-javascript-and-css-squisher). It's built against 1.1.30. The code works as expected on most pages and in the dashboard. I've run into some issues though with breaking some file path dependencies, especially when one JavaScript file loads another one (like in TinyMCE). My short term work around was going to be to allow path exclusions to avoid troublesome scripts. I'd love to hear your thoughts and if you're interested in combining efforts to come up with a module that works for everyone. Thanks! -Steve On Fri, Jul 1, 2011 at 5:37 PM, Gianluca Esposito < [email protected]> wrote: > Hi guys, > I released some weeks ago an Orchard module able to minimize html, css and > javascript (either inline or not), based on YUI Compressor for .NET. > I made some basic tests using some of the themes available in the gallery, > before publishing it in the Orchard gallery (http://www.orchardproject.** > net/gallery/List/Modules/**Orchard.Module.OfficineK.**HTMLToolkit<http://www.orchardproject.net/gallery/List/Modules/Orchard.Module.OfficineK.HTMLToolkit>). > > I would like to improve this module. I need your help! Any comment/feedback > would be greatly appreciated. > Thank you! > Gianluca > > --- > You are currently subscribed to orchard-discuss as: [email protected]. > To unsubscribe send a blank email to leave-orchard-discuss@lists.** > outercurve.org <[email protected]>. > > -- Steve Meyers vp products and development at slamm http://slamm.com 215.703.7838 (p) 484.341.1318 (f) steven.meyers (skype) --- You are currently subscribed to orchard-discuss as: [email protected]. To unsubscribe send a blank email to [email protected].
