mozilla-b2g/gaia — pull request #6570 by KevinGrandon (2012-11-22 04:55:50+00:00)
Title: Bug #807906 Incrementally load files in calendar to reduce load times

This is the first step at a simple dependency management system to reduce initial startup time. Should this approach be acceptable, there are further optimizations we can do to stores, models, and providers.

- app.view() is now asynchronous and takes a callback as the second parameter. This is so we can lazy load views.
- In order to create a standardized dependency system, a few classes were moved over to js/utils/. I can do more work to move additional classes to this folder.

Before optimizations: 111 requests @ 469.8kb
After Optimizations: 96 Requests @ 420.7kb