cellcounter/cellcounter — pull request #209 by jvc26 (2014-02-03 16:14:38+00:00)
Title: Compress non-browser specific JS into single file

Essentially, this adds a new compressed JS file (cellcountr-datestamp.js) to the repository, and appropriately tidies the contents of base.html to load the compressed file in one sitting. This file is the output of the Google Closure Tools suite (https://developers.google.com/closure/compiler/) run with:

java -jar ~/compiler.jar --js=jquery-1.10.2.min.js --js=bootstrap.min.js --js=csv.js --js=downloadify.min.js --js=download.js --js=images.js --js=jquery.cookie.js --js=jquery.tablesorter.min.js --js=jquery-ui-1.10.0.custom.min.js --js=swfobject.js --js=visualise.js --js=../../../cc_kapi/static/js/counter.js --js_output_file=cellcountr-datestamp.js

The upshot of this is that it saves time on the wire requesting all the different separated JS files. In addition, if we datestamp the JS we force the user to refresh their JS every time we change, rather than having them running on a locally cached JS until their browser re-requests.

This may be controversial - thoughts welcome please.