-
Notifications
You must be signed in to change notification settings - Fork 165
Open
Description
I am using an app (readium-js-viewer) which uses almond.js to load all modules. In index.html I am including the minified readium-js-viewer bundle, which includes almond.js:
<script type="text/javascript" src="scripts/readium-js-viewer_all_LITE.js"> </script>
Afterwards I am calling require.config() to provide some basic configuration to readium modules:
require.config({
waitSeconds: 0,
config : {
'readium_js_viewer/ModuleConfig' : {
...
However, every other time the app is not starting properly because the configuration is missing. It seems require.config() is sometimes being called too late, when the app already tries to access the config.
Using require.js, I could define var require = {waitSeconds: 0, config : ...} before loading require.js. However, this is not possible with almond.js.
Using almond.js, how am I supposed to make sure the config is being loaded before the app is trying to access it?
Metadata
Metadata
Assignees
Labels
No labels