< Back to Blog home

UX Tip #71 JS/CSS optimisation – bless your CSS


An optimised technical solution increases performance and enhances User Experience.Older versions of IE had a limitation of the CSS file size it can parse. To avoid this issue while concatenating your CSS to optimise their load times is to Bless your CSS.A simple solution to getting around the IE <9 selector problem mentioned previously is to use Bless. What this does is analyse your CSS and then split it up into a new file prior to the 4095 selector limit. It’s almost like magic and can either run as part of your build pipeline or on the server via Node.JS.In certain systems, such as Drupal (which we use extensively), there are modules that automatically do this for you as part of the CSS aggregation step. Our personal favourite is the Advanced Aggregation module, which does it with a simple configuration setting.