Check out trojan here: https://github.com/mattinsler/trojan
This helps with managing download times for all the transpiling code that we use for things like coffeescript and less and ejs.
At the time I wrote this module I thought it'd be funny to name one of the files horse to continue the joke. Definitely time to change that filename. =-)
I'd be happy to walk you through how all the code works if you're interested.