| 84 | |
| 85 | Browsers default to only downloading 2 files from the same origin at a time, so many files is very slow on high latency links. |
| 86 | |
| 87 | We therefore consolidate into fewer, larger files when running in Production mode. |
| 88 | |
| 89 | Since GIS is a specialised app which requires many files, it's JS & CSS are loaded separately when required. |
| 90 | |
| 91 | The build script is {{{static/scripts/tools/build.sahana.py}}} |
| 92 | |
| 93 | There is also a convenience wrapper for Windows to run this & also move results into their respective locations: {{{static/scripts/tools/build.cmd}}} |
| 94 | |
| 95 | Need to remove the '@' from '@requires' in header of {{{/static/scripts/S3/jquery.form.js}}} as we need to compress this without the main file. |
| 96 | |
| 97 | Our build process is based on the one used by !MapFish (which is built on the one used by !OpenLayers) |
| 98 | * !MapFish (inc OL): https://trac.mapfish.org/trac/mapfish/wiki/HowToBuild |
| 99 | * !OpenLayers: http://trac.openlayers.org/wiki/Profiles |
| 100 | |
| 101 | !ToDo: Investigate using other options instead: |
| 102 | * http://developer.yahoo.com/yui/compressor/ |
| 103 | * http://www.crowproductions.de/repos/main/public/packer/jspacker.py |