guardian/frontend — pull request #249 by phamann (2012-11-14 17:17:34+00:00)
Title: Javascript refactor

#### The great November javascript refactor

Don't be affraid by the large ammount of files changed, most are very small tweaks. The goals of this refactor where to: normalise our modules, reduce file size bloat and reduce http requests.
A brief description of changes can be found below:

- Change our amd loader from require to curl.js
- Inline curl into our built app file
-- (also changed sbt require plugin to accept this)
- Convert userPrefs into amd module
- reduce inline code in commonJavascriptSetup fragment
- reduce size of 3rd party library dependencies

###### These changes where part of this but are already in PROD:

- create simple js router
- seperate page specfic bootstraps into induivdual files
- normalise modules