How to optimize your websites with the tools we all have readily available.
- [South Florida ColdFusion User's Website](http://www.cfug-sfl.org/
- Follow us on Twitter
- Like us on Facebook
- Adobe ColdFusion 10
- node.js
- Grunt The JavaScript Task Runner
- Apache or IIS 7+
Easy .. clone GIT repo to your desired location, preferably in a path accesible by your test webserver :-).
DEMO URL
http://dev.fusedev.com/cfug/2014.03.27/
- step_1.cfm
This is the file using none of the features discussed, such as cache busting, minification and server caching. - step_2.cfm
This is the file only using the minification feature - step_3.cfm
This is the file using all the features, minification, cache busting, optimized assets (if set to tru in app vars) and server side caching. - step_4.cfm
Same as step 3 except not using server side caching, instead using appcache to store localy and work competely without the need of being online and fetching the data from the server
A simple cache admin is available by navigating to cacheadmin/. The rest of the URL is based on your location of the files in your webroot.
After installing node.js and Grunt, you should be able to go to the directory in your terminal (or command prompt) and type the following command to install all the dependecies.
npm install --save-dev
Then you can run the default task by typing.
grunt
All are included in the grunt default task except the image optimizing process which you can call by running the following command
grunt imagemin