Want to use Guard (or something like it) with Mocha browser testing? Try Sublime Text 2 and LiveReload!
This was originally posted on the Sprint.ly blog about how we spent the last few months helping the Sprintly team land a massive performance refactor.
Last week we helped Sprintly launch a dramatic increase in front end performance. We are built on Backbone.js and, over time, our rendering times have slowed down. Luckily, using some of the great tools in the latest versions of Chrome and a few additional tools for instrumenting how the Sprintly frontend was performing, fixing it was dramatically easier than it would have been just a few months ago.
To reliably use cross-domain AJAX in your extension, you have to go through Crossrider's request.get() and request.post() APIs. Simple jQuery AJAX requests won't cut it due to browser portability problems. This means we needed to adapt Backbone to use this proprietary API for its persistence calls, like .save() and .fetch(). Here's how we overwrote Backbone.ajax to swap in the Crossrider API:
Who wants to watch a bunch of nerds fight about frontend frameworks? YOU DO!
The long awaited Frontend Framework Showdown is here! Join Quick Left at ConnectSolutions HQ in San Francisco August 29 at 6:30 PM for a fun debate covering the finer points of Backbone, Angular, Ember and more. Come hungry - food and beer will be served.
We also hear portions of this debate will be acted out through interpretive dance. Just sayin'.