Category Filtering: 'tips'

Handling BOMs with JSMin

Category ColdBox, ColdFusion, JSMin, Tips

A fantastic tool for increasing web app efficiency is Luis Majano's JSMin compressor.  It takes your local CSS or JavaScript files, compresses them, and stores them as an aggregated file in your app's cache.  I did run into a bit of trouble with it recently when I ran it on an app's new stack and encountered a bit of a BOM problem.  Here's why the BOM can be a problem and a simple way to fix it.


MXUnit Decorators in cfscript

Category ColdBox, MXUnit, Tips

This is just a quick post showing how to use any of the MXUnit decorators, including the new ORM transaction decorator designed for ColdBox ORM Services, in pure cfscript.  It took me a second to get the syntax correct so I thought I would share and keep this for my own reference.


1