# Manual bootstrap of ember app. Possible?

**URL:** <https://discuss.emberjs.com/t/manual-bootstrap-of-ember-app-possible/8069>\
**Category:** Ember CLI\
**Created:** [May 24, 2015, 8:29am UTC](https://discuss.emberjs.com/t/manual-bootstrap-of-ember-app-possible/8069 "2015-05-24T08:29:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![steven58](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@steven58](https://discuss.emberjs.com/u/steven58)\
**Post date:** [May 24, 2015, 8:29am UTC](https://discuss.emberjs.com/t/manual-bootstrap-of-ember-app-possible/8069/1 "2015-05-24T08:29:30Z")

</div>

I want to have an ember app, that is included on all pages of the website, but is actually run only after logging in. In other words, I want to tell the ember app “start now” as opposed to it starting automatically after web page/js is loaded.

For example, before logging in, I want to use ember to adds bits of functionality such as rendering simple components. Also, before logging in, the Ember JS javascript files are downloaded so that when the user does log in, it appears to be a bit faster in loading.

After logging in, the Ember app will actually load and route navigation will start.

Is there a way I can do this with ember-cli?

I am using ember-cli-rails, if that matters.

---

<div class="post-metadata">

**Author:** ![rafalp](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/rafalp/32/10130_2.png) [@rafalp](https://discuss.emberjs.com/u/rafalp)\
**Post date:** [May 24, 2015, 5:42pm UTC](https://discuss.emberjs.com/t/manual-bootstrap-of-ember-app-possible/8069/2 "2015-05-24T17:42:58Z")

</div>

This seems to be supported by Ember-CLI, but documentation is pretty minimal on this subject:

> **[Asset compilation - Advanced use - Ember CLI Guides](https://cli.emberjs.com/release/advanced-use/asset-compilation/)**
>
> When working on an Ember app, sometimes you may want to customize how certain kinds of assets are handled. This is referred to as "asset compilation." 
> 
> For information on stylesheets, please see the dedicated section, Stylesheet compilation Raw...

---

<div class="post-metadata">

**Author:** ![samselikoff](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/samselikoff/32/16581_2.png) [@samselikoff](https://discuss.emberjs.com/u/samselikoff)\
**Post date:** [May 25, 2015, 4:53am UTC](https://discuss.emberjs.com/t/manual-bootstrap-of-ember-app-possible/8069/3 "2015-05-25T04:53:17Z")

</div>

I think you’re looking for [deferReadiness](http://emberjs.com/api/classes/Ember.Application.html#method_deferReadiness).

---

<div class="post-metadata">

**Author:** ![steven58](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@steven58](https://discuss.emberjs.com/u/steven58)\
**Post date:** [May 26, 2015, 4:00am UTC](https://discuss.emberjs.com/t/manual-bootstrap-of-ember-app-possible/8069/4 "2015-05-26T04:00:07Z")

</div>

Thanks, I ended up using deferReadiness.
