CSS optimization

Icon

WAO CSS optimization will optimize all CSS files loaded by your ASP.NET applications. WAO will remove all unnecessary data from all CSS files.

CSS Handler Features

  • Caches the optimized CSS files (using the file cache dependency)
  • Removes all comments
  • Removes all new line characters
  • White space optimization


Optimization performance

Css file not optimized

Css file optimized


Quick guide to WAO CSS optimizer implementation
  • Register a CSS HttpHandler in your web.config: <system.web> ... <httpHandlers> ... <add verb="*" path="*.css" type="MonoSoftware.Web.WAO.Handlers.CssHandler" validate="false"/> ... </httpHandlers> ... </system.web>
  • Configure IIS to parse all CSS files:


We recommend using   to perform tests that are described on this page.