tangrams/tangram — pull request #69 by bcamper (2014-11-29 17:19:18+00:00)
Title: Preload render mode shaders & convert callbacks to promises

By preloading the remote shader resources for render modes when the style sheet is initially loaded and parsed, we can make the mode initialization and recompilation process synchronous instead of async. This simplifies some code and avoids some complex async/throttling checks.

This branch also converts most (all?) remaining callback-oriented APIs to use Promises instead.