# Alternative loader.js for ember-cli

**URL:** <https://discuss.emberjs.com/t/alternative-loader-js-for-ember-cli/6338>\
**Category:** Uncategorized\
**Created:** [September 24, 2014, 10:21pm UTC](https://discuss.emberjs.com/t/alternative-loader-js-for-ember-cli/6338 "2014-09-24T22:21:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdamFerguson](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/adamferguson/32/14462_2.png) [@AdamFerguson](https://discuss.emberjs.com/u/AdamFerguson)\
**Post date:** [September 24, 2014, 10:21pm UTC](https://discuss.emberjs.com/t/alternative-loader-js-for-ember-cli/6338/1 "2014-09-24T22:21:18Z")

</div>

Anyone had any luck using an alternative loader.js for ember-cli? I’d like to find an AMD loader that will resolve modules locally if they have been `defined()` but will load them remotely if they haven’t. The use case is that there are a few javascript files that contain configuration information that the business would like to be able to modify and deploy without requiring an application rebuild. I’ve tried both `require.js` and `curl.js` but both seem to break in ember-cli. It looks like [there is a configuration option for loader](https://github.com/stefanpenner/ember-cli/blob/master/lib/broccoli/ember-app.js#L106) so I would think someone is doing it successfully.

---

<div class="post-metadata">

**Author:** ![rwjblue](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/rwjblue/32/9411_2.png) [@rwjblue](https://discuss.emberjs.com/u/rwjblue)\
**Post date:** [September 25, 2014, 12:13am UTC](https://discuss.emberjs.com/t/alternative-loader-js-for-ember-cli/6338/2 "2014-09-25T00:13:59Z")

</div>

Ember CLI master does not embed configuration information in the `assets/my-app-name.js` output file.

Changes made in [https://github.com/stefanpenner/ember-cli/pull/2086](https://github.com/stefanpenner/ember-cli/pull/2086) and some discussion in [https://github.com/stefanpenner/ember-cli/issues/2059](https://github.com/stefanpenner/ember-cli/issues/2059).

---

<div class="post-metadata">

**Author:** ![AdamFerguson](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/adamferguson/32/14462_2.png) [@AdamFerguson](https://discuss.emberjs.com/u/AdamFerguson)\
**Post date:** [September 25, 2014, 8:32pm UTC](https://discuss.emberjs.com/t/alternative-loader-js-for-ember-cli/6338/3 "2014-09-25T20:32:20Z")

</div>

Thanks Robert, this is a great change. Appreciate your help.
